Share via


QueryTimeout Property

Questa funzionalità verrà rimossa in una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

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

Sintassi

object
.QueryTimeout [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A long integer that specifies the number of seconds

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetQueryTimeout(LPLONG pRetVal);
HRESULT SetQueryTimeout(LONG NewValue);

Osservazioni

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

Applies To:

LinkedServer2 Object

SQLServer Object