INFO: Retrieving IDENTITY Value for Referential Integrity (134660)
The information in this article applies to:
- Microsoft SQL Server 6.0
- Microsoft SQL Server 6.5
- Microsoft SQL Server 7.0
This article was previously published under Q134660 SUMMARY
The Microsoft SQL Server version 6.0 documentation says that you can use
the @@IDENTITY variable to retrieve the last-inserted identity value. The
documentation, however, does not completely state the scope of the
@@IDENTITY variable.
This article provides some additional information to clarify the scope of
the @@IDENTITY variable.
Modification Type: | Minor | Last Reviewed: | 2/22/2005 |
---|
Keywords: | kbinfo kbProgramming kbusage KB134660 |
---|
|