Hello all,
I have just started learning about Output Parameters. I have a stored procedure that appends some data to table1. Then I want to get the identity of all the new records I just appended to table1 and append them to a another table along with some information from the first table.
I figured out how to get the last identity with @@identity but I can't get everything that I appended.
Is there a way to get this? Should I do it with a loop somehow? (append 1 record, get the identity, append to 2nd table, then append 2nd record and so forth)
Any help is appreciated!
Chris
I have just started learning about Output Parameters. I have a stored procedure that appends some data to table1. Then I want to get the identity of all the new records I just appended to table1 and append them to a another table along with some information from the first table.
I figured out how to get the last identity with @@identity but I can't get everything that I appended.
Is there a way to get this? Should I do it with a loop somehow? (append 1 record, get the identity, append to 2nd table, then append 2nd record and so forth)
Any help is appreciated!
Chris