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

Article translations Article translations
Article ID: 294839 - View products that this article applies to.
This article was previously published under Q294839
BUG #: 353031 (SHILOH_bugs)
Expand all | Collapse all


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.


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


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


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.


Article ID: 294839 - Last Review: November 6, 2003 - Revision: 3.2
  • Microsoft SQL Server 2000 Standard Edition
kbbug kbfix kbsqlserv2000sp1fix KB294839

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from