Microsoft KB Archive/175056

From BetaArchive Wiki

"Error -2" in 16-Bit Program When Disconnecting from SQL Server


The information in this article applies to:

  • Microsoft Windows 95
  • Microsoft Windows 95 OEM Service Release, versions 1, 2, 2.1


When you connect to an SQL server using a 16-bit program that uses SQL dblib calls, you may receive an "Error -2" error message.


This problem can occur if you connect and disconnect from the SQL server a number of times.


This issue is resolved by the following updated file for Windows 95, and later versions of this file:

   WSOCK.VXD  version 4.00.952  dated 2/18/97  15,546 bytes 

A version of this file which resolves this problem is included in the Windows Sockets 2.0 update for Windows 95. For information about obtaining this update, see the following article in the Microsoft Knowledge Base:

Q182108 Availability of Windows Sockets 2.0 for Windows 95


Microsoft has confirmed this to be a problem in Microsoft Windows 95. An update to address this problem is now available, but is not fully regression tested and should be applied only to computers experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft does not recommend implementing this update at this time. Contact Microsoft Technical Support for additional information about the availability of this update.

This issue is resolved in Microsoft Windows 98.


For additional information about issues resolved by updates to this component, please see the following article in the Microsoft Knowledge Base:

Q161099 Secured Web Pages Not Loaded with Netscape Navigator 1.x

For additional information about Windows 95 updates, please see the following article in the Microsoft Knowledge Base:

Q161020 Implementing Windows 95 Updates

Additional query words:

Keywords : kberrmsg kbinterop osr1 osr2 win95
Issue type : kbprb
Technology : kbWin95search kbOPKSearch kbWin95 kbWin95OPKOSR2 kbWin95OPKOSR1 kbWin95OPKOSR210

Last Reviewed: January 31, 2001
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.