Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recuperar autonumerador do sql server
Message
De
27/02/2003 11:27:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00757315
Message ID:
00758820
Vues:
20
>Me parece que a variavel @@IDENT não confunde as bolas... Ela tem um valor para cada conexão, então se outro alguém estiver inserindo ao mesmo tempo, os valores serão diferentes, já que são conexões diferentes...

menos mal. :)
entretanto, tem algo no help do SQL que pede um pouco de cuidado se for usar esta variável. veja:

If the statement fires one or more triggers that perform inserts that generate identity values, calling @@IDENTITY immediately after the statement returns the last identity value generated by the triggers.
Claudio Lassala
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform