On 9/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I am using MS Sql server 2000 as database server.
Primary key of table is generated using Identity.
       How can we get currently generated identity?

After saving an object, its field that is mapped to the primary key,
should contain the value.
If you're sure that only one thread accesses the database, then you
could also use Sql Server specific SQL to get the value (via JDBC):

http://www.sqlteam.com/item.asp?ItemID=319

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to