dbTalk Databases Forums  

retrieve @@identity in SP before it changes

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss retrieve @@identity in SP before it changes in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bhaskar
 
Posts: n/a

Default retrieve @@identity in SP before it changes - 11-27-2007 , 09:31 AM






Hi All,
Is there a way to retrieve the value of @@identity global
variable while in a stored proc with no risk of its value
changing due another insert done using same connection?
This is in the context of using auto increment PK in
multiple tables and sharing the JDBC connection between
multiple objects. One which calls a Store Proc and another
which just inserts records.
Thanks,
Bhaskar.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.