Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ident_current
Message
From
24/12/2002 16:44:43
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00735647
Message ID:
00735694
Views:
7
Thanks for the SCOPE_IDENTITY() suggestion. I inherited some code and didn't look into it deeply. I'll check out the function.

I put a request on a Sybase newsgroup and I'll keep checking for replys. Sybase, as community, doesn't seem to be as active as MS SQL Server and VFP.

Gary

>is IDENT_CURRENT() what you really want? It returns the last IDENTITY value inserted into the table, regardless of the connection that inserted the row! IMO, you probably want to use SCOPE_IDENTITY().
>
>Sorry, can't help you with Sybase. Have you check any of the Sybase newsgroups?
>
>-Mike
>
>>Hi,
>>I'm modifying a VFP program that runs against MS SQL Server to run against Sybase 11 because, unfortunately, that what a client uses. I use "Select newkey = IDENT_CURRENT('warranty')" to get the ID of a newly INSERTEd record. Does anyone know if a Sybase analog exists? Thanks.
>>
>>Gary Foster
Previous
Reply
Map
View

Click here to load this message in the networking platform