Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to retrieve a PK assigned to a table?
Message
 
 
À
03/08/2005 15:30:01
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01038224
Message ID:
01038270
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform