string connectionString = ConfigurationManager.ConnectionStrings["azeem12"].ConnectionString;
SqlConnection con = new SqlConnection(connectionString);
SqlCommand cmd = new SqlCommand("insert into tbl (name)values ('ee') ", con);
{
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
add name="azeem12" connectionString="Password=;Persist Security Info=True;User ID=caarridc;Initial Catalog=;Data Source="
ReplyDeleteproviderName="System.Data.SqlClient;"