I have a main procedure, and in this SP it does the following piece of code:
EXEC @PropertyID = [import].[spInsertIntoTblMemberProperties]
blah blah blah
And then in my spInsertIntoTblMemberProperties the following two lines of code:
select SCOPE_IDENTITY() as 'MemberPropertyID'; (if it is a new property)
select MemberPropertyID as 'MemberPropertyID'; (if it is an existing property)
from blah blah blah
However, this doesn't make @PropertyID equal the 'MemberPropertID' and I was wondering how I would do so.
Thanks, Dan