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