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:
01038270
Views:
19
Thank you, Alan. I did find this syntax in the MSDN but I can't figure out how to apply it to a SQLEXEC() funtion. I will try different variations.

>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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform