Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETAUTOINCVALUE for sqlserver
Message
 
 
To
07/12/2009 10:58:38
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01437880
Message ID:
01437888
Views:
42
>>>Is there any equivalent function (GETAUTOINCVALUE) to get the autoinc value in MS SQL SERVER ?
>>
>>Yes, see SCOPE_IDENTITY, IDENT_CURRENT, and @@IDENTITY in BOL.
>>The SCOPE_IDENTITY() usually works the best unless you have some special requirements.
>
>Is is possible to pass this function together with the insert command in the SP , or I have to create a store procudure to call it ?

Yes, see my other reply, though I prefer using stored procedures.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform