I want to execute several inserts at the smame batch to speed up the program.
Is it possible to do the following?
Insert Into Table1 (a) Values (@a);
Insert Into Table2 (b) Values (@b);
Insert Into Table3 (c) Values (@c);
and if it’s possible then how should I pass the parameters to the SQL Parameters?
Basically I want to do something like this example but for Insert instead of Select
Another example:
The line breaks are not necessary. They are only there so the output is nicely formatted. If you put your values into a hashtable, you could even do it in a loop like so: