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

ID: Q175056


The information in this article applies to:
  • Microsoft Windows 95
  • Microsoft Windows 95 OEM Service Release version 1
  • Microsoft Windows 95 OEM Service Release version 2
  • Microsoft Windows 95 OEM Service Release version 2.1


SYMPTOMS

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.


CAUSE

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


RESOLUTION

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


STATUS

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.


MORE INFORMATION

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

Keywords : kberrmsg kbinterop osr1 osr2 win95
Version : WINDOWS:95
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: June 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.