Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ident_current
Message
From
24/12/2002 15:35:59
 
 
To
24/12/2002 11:36:21
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:
00735686
Views:
7
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
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform