Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recuperar autonumerador do sql server
Message
From
27/02/2003 11:27:07
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00757315
Message ID:
00758820
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform