SqlCommand cmd = new SqlCommand("Select * from Authors",con); //connection is defined con.Open(); // connection is opened cmd.Connection=con1; // another valid connection object
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)