QueryTimeout Property
后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The QueryTimeout property specifies the number of seconds elapsed before a time-out error is reported on an attempted statement execution.
语法
object
.QueryTimeout [= value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
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);
注释
To specify that a query cannot time out, use -1 (the default) or 0.