SqlConnection sqlConn = new SqlConnection("...");
sqlConn.Open();
SqlCommand command= new SqlCommand("stored_procedure_name", sqlConn);
command.CommandType = CommandType.StoredProcedure;
// add parameter
command.Parameters.AddWithValue("@id", id);
int affectedRows = command.ExecuteNonQuery();
Thursday, August 20, 2009
Subscribe to:
Post Comments (Atom)
1 comment:
hey you have a nice blog
but plz add subscribe or follow me buttons so that we can keep a track of ur posts
thnks
Aman
Post a Comment