FIX: 16-bit TCP/IP Fails to Connect With Long DNS Names

Last reviewed: April 9, 1997
Article ID: Q154627
The information in this article applies to:
  • Microsoft SQL Server, versions 4.21a, 6.0 and 6.5
BUG #: Windows NT: 15694

SYMPTOMS

When you attempt to connect to a SQL Server using the 16 bit TCP/IP sockets network library with a fully qualified DNS name 20 characters or greater, the following error message appears:

   Msg No.:10004     Severity: 9  State: 0
   Unable to connect: SQL Server is unavailable or does not exist.
   General network error. Check your documentation.

   OS Error: 11004      ConnectionOpen(gethostbyname())

CAUSE

When the name is passed to the network for resolution to an IP address, it is truncated at the 20th character and “FF FF FF FF” is appended to the name. This results in a name that cannot be resolved.

WORKAROUND

To work around this problem, use shorter DNS names or use the IP address of the SQL server.

MORE INFORMATION

This problem is not related to only DNS names. Any name greater than 20 characters will fail in this manner. However, names of that length are not frequently used in environments other than the Domain Name Service.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 4.21a, 6.0 and 6.5. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.


Additional query words: 4.21a 6.0 6.5 hosts daemon
Keywords : kbbug6.00 kbbug6.50 kbfix6.50.sp2 kbnetwork SSrvLan
Version : 4.21a 6.0 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.