I am doing merge statement in my stored procedure. I need to count the rows during updates and inserts. If i use a common variable to get the updated rows (for both update and insert) how i can differ, this is the count which i got from update and this is the count which i got from insert. Please give me a better way
Share
You can create a table variable to hold the action type then
OUTPUTthe pseudo$actioncolumn to it.Example
Returns