Example #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");
        }
Example #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");
        }
Example #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");
 }