BUG: "Unable to Connect" Msg May Occur in Application Event Log

Last reviewed: May 28, 1997
Article ID: Q167352
The information in this article applies to:
  • Microsoft SQL Server, versions 6.0 and 6.5
BUG #: 15849 (Windows: 6.5)

SYMPTOMS

Under certain situations, one of the following errors may be logged by SQL Server in the Application Event Log:

  • Severity: 9 Error:10004, OS: 11001 Unable to connect: SQL Server is unavailable or does not exist. General network error. Check your documentation.ConnectionOpen (gethostbyname()()).

    -or-

  • Severity: 9 Error:10004, OS: 252 Unable to connect: SQL Server is unavailable or does not exist. General network error. Check your documentation.ConnectionOpen (ReadPropertyValue()).

Similar messages may also appear, depending on which Net-Library you have set as the default.

CAUSE

By default, the xp_sqlregister extended stored procedure is run automatically at SQL Server startup. If the default client Net-Library on the server is set to non-named pipes IPCs such as TCP/IP or IPX/SPX, you would see this error message in the Windows NT Server Event Viewer. This error message occurs when this particular extended stored procedure tries to log on to SQL Server using dot "." as the local server name. This fails because dot "." is not valid as the local server name under non-named pipes IPCs.

WORKAROUND

Do not set the default Net-Library to non-named pipes IPCs on the server. Because the setting of a default client Net-Library on the server does not affect how other clients connect to SQL Server, you should never have to set the default Net-Library on the server to anything other than named pipes. If you need to connect to other SQL Servers from this server using non-named pipes IPCs, you can always do so through advanced entries in the client configuration. For more details, see the SQL Server the Books Online.

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.


Additional query words: netlib errorlog eventlog
Keywords : kbbug6.00 kbbug6.50 kbenv SSrvNet_Lib
Version : 6.0 6.5
Platform : WINDOWS
Issue type : kbbug
Resolution 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: May 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.