BUG: Db_name Returns Current Database if Passed SmallintLast reviewed: April 28, 1997Article ID: Q88274 |
The information in this article applies to:
SYMPTOMSIf dbid is a smallint, DB_NAME(dbid) returns the current database, rather than the database indicated by dbid. This happens only in version 4.2.
WORKAROUNDUse an int data type rather than a smallint.
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2 for OS/2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: Transact-SQL datatype
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |