SqlConnection cs1 = new SqlConnection("Data Source=sedc;Initial Catalog=ur databasename;Persist Security Info=True;User ID=ur databaseusername;Password=ur databasepassword"); SqlCommand cmd1 = new SqlCommand(); cs1.Open(); cmd1.CommandText = "sql query"; cmd1.Connection = cs1; int a = cmd1.ExecuteNonQuery(); cs1.Close();
select * from usermaster
usermaster
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)