BUG: Problem Connecting to an Unnamed Server with Sqlmaint.exe

Last reviewed: April 9, 1997
Article ID: Q160237
The information in this article applies to:
  • Microsoft SQL Server, version 6.5
BUG #: 1278 (Windows: 6.50)

SYMPTOMS

When you create a SQL Maintenance Wizard task (which uses the Sqlmaint.exe utility) to connect to an unnamed server, the Sqlmaint.exe utility will end with an unhandled access violation (AV). The executable file will either stop or open the default debugger.

This problem generally occurs on computers that are not valid SQL Server identifiers. For example, "MY-SERVER" is invalid because the dash (-) is not a valid SQL Server identifier symbol. Thus, no entry is placed in the sysservers table.

WORKAROUND

Use sp_addserver to add an entry for the local server. For example, instead of "MY-SERVER," you can use "MY_SERVER." Once you have added the local server entry, you will need to stop and restart SQL Server for the change to take effect.

You can verify the change with the following command:

  select @@SERVERNAME

If the command returns (NULL), the server still has an invalid name.

STATUS

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


Additional query words:
Keywords : kbbug6.50 kbenv kbnetwork kbtool SSrvGen
Version : 6.5
Platform : WINDOWS


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: April 9, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.