QueryTimeout Property (SQL-DMO)

The QueryTimeout property specifies the number of seconds elapsed before a time-out error is reported on an attempted statement execution.

Applies To

SQLServer Object

Syntax

object.QueryTimeout [= value]

Part Description
object Expression that evaluates to an object in the Applies To list.
value Long integer specifying the number of seconds.

Remarks

To specify that a query cannot time out, use -1 (the default) or 0.

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetQueryTimeout(LPLONG pRetVal);

HRESULT SetQueryTimeout(LONG NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.