Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to retrieve a PK assigned to a table?
Message
 
 
To
03/08/2005 15:30:01
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01038224
Message ID:
01038273
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
>Do a SELECT @@IDENTITY statement to get last PK inserted into your SQL table.

It may be safer to use SCOPE_IDENTITY(). See BOL for details.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform