QueryTimeout Method

Description

This event method is called when the connection to SQL Server times out during a query. The SQLServer.QueryTimeout property is the connection timeout value.

C++

HRESULT pServerSink->QueryTimeout (
SQLOLE_LPCSTR
strTimeout,
LPBOOL bContinue );

Elements


Element Type Description

strTimeout String Timeout message.
bContinue Boolean Determines if SQL-DMO will wait for another timeout period. If set to True, SQL-DMO will wait for another timeout period for the query to complete. If set to False, SQL-DMO will cancel the timed-out query, and the current operation will fail.