Article ID: 294839 - View products that this article applies to.
This article was previously published under Q294839
BUG #: 353031 (SHILOH_bugs)
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:
(http://support.microsoft.com/kb/290211/EN-US/ )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.