The IDENT_CURRENT Transact-SQL statement returns an unexpected value for an empty table that has an identity column (835188)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
Bug #: 213497 (SQL Server 8.0) SQL Server 8.0:213497 SYMPTOMS When you use the IDENT_CURRENT Transact-SQL statement to
retrieve the last identity value that is generated for an empty table, the
IDENT_CURRENT Transact-SQL statement returns the seed. The seed is the value that is used for the first row that is loaded into the table.CAUSEThe IDENT_CURRENT Transact-SQL statement returns the last identity value that is
generated for the identity column in the specified table. However, if the
identity value has not yet been generated for the specified table, the
IDENT_CURRENT Transact-SQL statement returns the seed value that is specified
when the identity column in the specified
table is created.REFERENCESFor more information about the IDENT_CURRENT Transact-SQL
statement, see the "IDENT_CURRENT" topic in SQL Server Books
Online.
Modification Type: | Major | Last Reviewed: | 9/20/2005 |
---|
Keywords: | kbprb kbtable KB835188 kbAudDeveloper |
---|
|