Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            database = new db1("Persist Security Info=False;Integrated Security=true;Initial Catalog=Northwind;Server=RAMNIK-SURFACE\\SQLEXPRESS");
            String count = database.getCustomerCount();

            MessageBox.Show(count, "Customer Count");
        }
Ejemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            database = new db1("Persist Security Info=False;Integrated Security=true;Initial Catalog=Northwind;Server=RAMNIK-SURFACE\\SQLEXPRESS");
            string names = database.getCompanyNames();

            MessageBox.Show(names, "company names");
        }
Ejemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     database = new db1("Persist Security Info=False;Integrated Security=true;Initial Catalog=Northwind;Server=RAMNIK-SURFACE\\SQLEXPRESS");
     MessageBox.Show("Connection information sent");
 }