FIX: Query Times Out Too Early Under Multiprotocol Net- Library

ID: Q152062


The information in this article applies to:

BUG #: 15252 (SQLBUG_60_RW and SQLBUG_65)

SYMPTOMS

When you use DBMSRPC3.DLL to connect to SQL Server, a Win16 application can prematurely time out the query. For example, if the query timeout is set to 55 seconds using dbsettime() in a DB-Library application, the query will timeout within 10 seconds. With settings under 30 seconds, the query timeout setting works fine.


CAUSE

The timeout mechanism in ConnectionRead() of the client-side Net-Library DBMSRPC3.DLL incorrectly calculates the timeout setting under certain situations.


WORKAROUND

Use either of the following to work around the problem:


STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0.

Microsoft has confirmed this to be a problem in SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 5a for Microsoft SQL Server version 6.5. For information about downloading and installing the latest SQL Server Service Pack, see http://support.microsoft.com/support/sql/.

For more information, contact your primary support provider.


MORE INFORMATION

This is a Net-Library specific issue. It occurs when the application API (DBLIB or ODBC) calls the Net-Library API function ConnectionRead() to read results from the server. The timeout value parameter is correctly passed to ConnectionRead(), but the function does not wait long enough before timing out. This problem can affect both DBLIB and ODBC applications.

Additional query words:


Keywords          : kbbug6.50 kbfix6.50.SP5 kbbug6.00 
Version           : winnt:6.0,6.5
Platform          : winnt 
Issue type        : kbbug 

Last Reviewed: April 21, 1999