Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Having identity crisis!
Message
De
30/09/1999 10:01:12
 
 
À
30/09/1999 09:55:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00270941
Message ID:
00271031
Vues:
23
>Hi Tom ----
>
>Ian proposed @@IDENTITY, which is the optimal way of getting the latest ID, but that doesn't always work. Another way would be two open two connections to the table. Save on the first connection, then requery the table with the second connection and get the key that way.
>

John,

How would you know which was the record ou had just added on the second connection? Would you need another key made up from the other fields?

In what circumstances does @@IDENTITY not work? - I ask as its been ages now since I was lucky enough to do anything with SQL Server!
regards

Ian
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform