Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Most efficient way to run several SQL statements
- using(SqlCommand cmd = conn.CreateCommand())
- {
- cmd.CommandType = CommandType.Text;
- cmd.CommandText = @"
- exec YourProcedure @param1;
- exec YourProcedure @param2;
- exec YourProcedure @param3;";
- cmd.ExecuteNonQuery();
- }
Advertisement
Add Comment
Please, Sign In to add comment