sql server - Is it good idea to batch multiple merge in a stored procedure -


i trying write stored procedure multiple insert/update/delete on different tables.

so sp looks this. right way do?

begin   merge 1 end begin   merge 2 end  begin   merge 3 end 

or should follow this

begin   merge 1   merge 2   merge 3 end 

help!!

you should have follows:

begin   merge 1   merge 2   merge 3 end 

see @aaronbertrand's comments above further clarification.


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -