Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to retrieve a PK assigned to a table?
Message
From
03/08/2005 15:30:01
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01038224
Message ID:
01038268
Views:
20
Do a SELECT @@IDENTITY statement to get last PK inserted into your SQL table.

>How do I get the PK value assigned by SQL Server right after adding a new record to a table? I tried to search UT but the search area is down. Thus, I am sorry for a very basic question, I am sure it was asked before.
>
>Thank you in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform