Exemplo n.º 1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            SqlConBuilder.Command.CommandText = "SELECT TOP (1000) [AddressID],[AddressLine1],[AddressLine2]" +
                                                ",[City],[StateProvinceID],[PostalCode],[rowguid],[ModifiedDate] FROM[TSOOPEX].[Person].[Address]";

            SqlConBuilder.Read(ref this.dataGridView1);
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            SqlConBuilder.SqlConnectionString.UserID   = Login.Text;
            SqlConBuilder.SqlConnectionString.Password = Pass.Text;
            SqlConBuilder.SqlConnectionString.Pooling  = true;

            if (SqlConBuilder.ConnectionTest() == true)
            {
                MessageBox.Show("соединение установлено успешно");
            }
            else
            {
                MessageBox.Show(" что-то пошло не так");
            }
        }