How To Retrieve @@IDENTITY Value Using JDBC (313130)
The information in this article applies to:
- Microsoft SQL Server 2000 Driver for JDBC
- Microsoft SQL Server 2000 (all editions)
- Microsoft SQL Server 2000 64 bit (all editions)
This article was previously published under Q313130 SUMMARY
When connected to a Microsoft SQL Server database, you can use the @@IDENTITY value to return the last-inserted identity value. This article contains a code sample that demonstrates how to retrieve this value in a Java application that uses the Microsoft SQL Server 2000 Driver for JDBC.
REFERENCES
For more information about @@IDENTITY, COPE_IDENTITY, and IDENT_CURRENT, see SQL Server Books Online.
Modification Type: | Minor | Last Reviewed: | 7/2/2004 |
---|
Keywords: | kbHOWTOmaster kbJDBC kbSystemData KB313130 kbAudDeveloper |
---|
|