Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identity question
Message
De
05/07/2000 17:31:22
 
 
À
05/07/2000 17:16:22
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00388555
Message ID:
00388563
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform