Viewing 2 posts - 1 through 2 (of 2 total)
I didn't think you had to explicitly drop temp tables created with the # prefix?
I thought SQL Server cleaned these up for you.
October 29, 2003 at 1:44 pm
#480179
Try using SCOPE_IDENTITY() as opposed to @@IDENTITY.
@@IDENTITY returns the most recently assigned identity value across the entire database (you're triggered INSERT, for example), whereas SCOPE_IDENTITY() will return the...
October 28, 2003 at 9:44 am
#479912