SqlCommand cmd = new SqlCommand();
cmd.CommandText = "My Insert Query";
cmd.ExecuteNonQuery();
Please help
home / developersection / forums / executenonquery: connection property has not been initialized.
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "My Insert Query";
cmd.ExecuteNonQuery();
Please help
Uttam Misra
23-Feb-2016SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = "My Insert Query"; cmd.ExecuteNonQuery();