BUG: DBCC SQLPERF(logspace) Returns Incorrect Database Name

Last reviewed: January 23, 1998
Article ID: Q179150
The information in this article applies to:
  • Microsoft SQL Server, versions 6.0 and 6.5
BUG #: 17704 (6.5)
       15730 (6.0)

SYMPTOMS

After dropping a database and then creating another database with a shorter name, DBCC SQLPERF(logspace) returns an incorrect name for the newly created database.

WORKAROUND

To work around this problem, stop and restart SQL Server. After doing this, DBCC SQLPERF will display the correct database name.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

DBCC SQLPERF(logspace) shows the new database name overwriting the dropped database name without cleaning up the rest of the characters of the dropped database name.

The following is an example on how to reproduce the problem:

   use master
   go
   create database cus_data   -- creates database 'cus_data' on default
   device
   go
   dbcc sqlperf(logspace)     -- shows 'cus_data' as the database name
   go

   drop database cus_data     -- drops current database
   go
   create database xyz        -- creates database 'xyz'
   go
   dbcc sqlperf(logspace)     -- shows 'xyz_data' as the database name
                              -- instead of 'xyz'
   go

   drop database xyz          -- reclaim space on default device
   go

The incorrect database name will also appear in the SQLServer-Log object's instance within the Performance Monitor.


Additional query words: transaction log db
Keywords : kbbug6.00 kbbug6.50 SSrvAdmin
Version : WINNT: 6.0 6.5
Platform : winnt
Issue type : kbbug
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 23, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.