Can I use multiple SCOPE_IDENTITY() in the same stored procedure or is there
a better way?
I have a stored procedure that will create a new row in 2 tables and both
tables have identity columns.
The first INSERT will add a record to a People table and then set a variable
to the SCOPE_IDENTITY() for use in the INSERT of the 2nd table. Then the
2nd table will return the SCOPE_IDENTITY of the 2nd table. Thanks.
David