Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETAUTOINCVALUE for sqlserver
Message
 
 
To
07/12/2009 10:45:25
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01437880
Message ID:
01437884
Views:
50
>Is there any equivalent function (GETAUTOINCVALUE) to get the autoinc value in MS SQL SERVER ?

Yes, SCOPE_IDENTITY() function.

In SQL Server 2005 and up the best method would be to use OUTPUT clause of the INSERT command to get the new ID.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform