When doing a merge statement we'd like to log the number of rows inserted and the number of rows updated.
At present we do this using 2 separate statements so we know from @@rowcount how many rows each one has operated on.
Is there anyway of getting the individual counts from a merge statement ?
Thanks