Disable Resource Governor
Applies to: SQL Server Azure SQL Managed Instance
You can disable the Resource Governor by using either SQL Server Management Studio or Transact-SQL.
Before you begin: Limitations and Restrictions, Permissions
To disable Resource Governor, using: Object Explorer, Resource Governor Properties, Transact-SQL
Disabling the Resource Governor has the following immediate effects:
The classifier function is not run.
All new connections are automatically classified into the default workload group.
System-initiated requests are classified into the internal workload group.
All existing workload group and resource pool settings are reset to their default values. In this case, no events are fired when limits are reached.
Normal system monitoring is not affected.
Configuration changes can be made, but the changes do not take effect until the Resource Governor is enabled.
Upon restarting SQL Server, the Resource Governor will not load its configuration, but instead will have only the default and internal workload groups and resource pools.
You cannot use the ALTER RESOURCE GOVERNOR statement to disable Resource Governor when in a user transaction.
Disabling the Resource Governor requires CONTROL SERVER permission.
To disable the Resource Governor by using Object Explorer
In SQL Server Management Studio, open Object Explorer and recursively expand the Management node down to Resource Governor.
Right-click Resource Governor, and then select Disable.
To disable the Resource Governor by using the Resource Governor Properties page
In SQL Server Management Studio, open Object Explorer and recursively expand the Management node down to Resource Governor.
Right-click Resource Governor and then select Properties, this opens the Resource Governor Properties page.
Select the Enable Resource Governor check box, ensure that the box is not selected, and then select OK.
To disable the Resource Governor by using Transact-SQL
- Run the ALTER RESOURCE GOVERNOR DISABLE statement.
The following example enables the Resource Governor.
ALTER RESOURCE GOVERNOR DISABLE;
GO