Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Identity question
Message
From
05/07/2000 17:31:22
 
 
To
05/07/2000 17:16:22
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00388555
Message ID:
00388563
Views:
20
IMO, there is not a reliable way to retrieve the IDENTITY value assigned in SQL Server 7.0. You could try to capture @@IDENTITY but be warned. If the table that you're inserting into (call it A) has an trigger that inserts a row into another that that also has an IDENTITY column (call it B), @@IDENTITY will contain the identity value for table B not table A.

There is a new function in SQL Server 2000 to work-around this issue.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform