Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

SET QUERY_GOVERNOR_COST_LIMIT

SQL Server 2000

Overrides the currently configured value for the current connection.

Syntax

SET QUERY_GOVERNOR_COST_LIMIT value

Arguments

value

Is a numeric or integer value indicating if all queries are allowed to run (value of 0) or if no queries are allowed to run with an estimated cost greater than the specified nonzero value. If a numeric value is specified, Microsoft® SQL Server™ truncates it to an integer.

Remarks

Using SET QUERY_GOVERNOR_COST_LIMIT applies to the current connection only and lasts the duration of the current connection. Use the query governor cost limit option of sp_configure to change the server-wide query governor cost limit value. For more information about configuring this option, see sp_configure and Setting Configuration Options.

The setting of SET QUERY_GOVERNOR_COST_LIMIT is set at execute or run time and not at parse time.

Permissions

SET QUERY_GOVERNOR_COST_LIMIT permissions default to members of the sysadmin fixed server role.

See Also

SET

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.