PRB: Error "Can not find NETAPI.DLL" Under MS Client

ID: Q137786

The information in this article applies to:

SYMPTOMS

When you try to connect to SQL Server via named pipes from a computer running Windows with the Microsoft Network Client version 3.0, you may encounter the error "Can not find NETAPI.DLL."

CAUSE

Microsoft Network Client version 3.0 does not include the NETAPI.DLL file, which is necessary for named pipes communication support under Windows. To use named pipes with this network client, you need to use the NETAPI.DLL that comes with the Windows for Workgroups (WFW) distribution diskettes or CD-ROM. You can also find this file in Windows NT 3.5 or 3.51 server CD- ROM, under the directory of CLIENT\WFW\UPDATE.

WORKAROUND

You can correct this error by copying the NETAPI.DLL from the Windows for Workgroups (WFW) installation to the WINDOWS\SYSTEM directory.

MORE INFORMATION

The NETAPI.DLL that ships with Microsoft SQL Server 6.0 16-bit client can not be used for this purpose. If this file is in the path or in the current directory where your application is started, you need to rename it, and use the one from WFW instead.

Additional query words: sql6 msclient lan

Keywords          : kbinterop kbnetwork SSrvLAN 
Version           : 4.21 | 6.0
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: May 2, 1997