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

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -