共用方式為


Configuration.QueryGovernorCostLimit 屬性

Gets the ConfigProperty object that is used to set the query governor cost limit option.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public ReadOnly Property QueryGovernorCostLimit As ConfigProperty 
    Get
'用途
Dim instance As Configuration 
Dim value As ConfigProperty 

value = instance.QueryGovernorCostLimit
public ConfigProperty QueryGovernorCostLimit { get; }
public:
property ConfigProperty^ QueryGovernorCostLimit {
    ConfigProperty^ get ();
}
member QueryGovernorCostLimit : ConfigProperty
function get QueryGovernorCostLimit () : ConfigProperty

屬性值

型別:Microsoft.SqlServer.Management.Smo.ConfigProperty
A ConfigProperty object that specifies the settings for the query governor cost limit configuration option.

備註

This property specifies specify an upper limit for the time in which a query can run. Query cost refers to the estimated elapsed time, in seconds, required to execute a query on a specific hardware configuration.

範例

在 SMO 中設定 SQL Server

請參閱

參考

Configuration 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

伺服器組態選項

sp_configure (Transact-SQL)