Microsoft KB Archive/294839

= FIX: No Error Message Generated by Query Analyzer When You Try to Open a Database with a Name Greater Than 128 Characters =

Article ID: 294839

Article Last Modified on 11/6/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q294839



BUG #: 353031 (SHILOH_bugs)



SYMPTOMS
Start Query Analyzer from the command line, and pass the /d parameter to open a database. Then, specify a name that is longer than 128 characters. If a database exists whose name is equal to the first 128 characters, and if you have permissions to use that database, that database opens instead of an error message being generated.



RESOLUTION
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack



STATUS
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.



MORE INFORMATION
If you attempt to do this within Query Analyzer, by using the USE command and providing a name that is longer than 128 characters, the correct error message (similar to the following) occurs:

Server: Msg 103, Level 15, State 7, Line 1

The identifier that starts with 'abcdefghijklmnopqrstuvwxyz1234abcdefghijklmnopqrstuvwxyz1234abcdefghijklmnopqrstuvwxyz1234abcdefghijklmnopqrstuvwxyz1234abcdefgh' is too long. Maximum length is 128.

Keywords: kbbug kbfix kbsqlserv2000sp1fix KB294839

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.