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