title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | helpviewer_keywords | monikerRange | |
---|---|---|---|---|---|---|---|---|---|---|---|
Disable Resource Governor |
Learn how to disable resource governor using either SQL Server Management Studio or Transact-SQL. |
WilliamDAssafMSFT |
wiassaf |
dfurman |
01/02/2025 |
sql |
performance |
how-to |
|
>= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current |
[!INCLUDE SQL Server SQL MI]
You can disable resource governor using either [!INCLUDEssManStudioFull] or [!INCLUDEtsql].
Disabling resource governor has the following immediate effects:
- The classifier function isn't executed when a new connection is opened.
- New connections are automatically classified into the
default
workload group. - All existing workload group and resource pool settings are reset to their default values.
- No events are fired when limits are reached.
- Resource governor configuration changes can be made, but the changes don't take effect until resource governor is enabled.
You can't use the ALTER RESOURCE GOVERNOR
statement as part of a user transaction.
Disabling resource governor requires the CONTROL SERVER
permission.
To disable resource governor using Object Explorer in [[!INCLUDEssManStudioFull]](../../ssms/download-sql-server-management-studio-ssms.md):
- In [!INCLUDEssManStudioFull], open Object Explorer and expand the Management node down to Resource Governor.
- From the Resource Governor context menu, select Disable.
To disable resource governor using the resource governor properties page:
- In [!INCLUDEssManStudioFull], open Object Explorer and expand the Management node down to Resource Governor.
- From the Resource Governor context menu, select Properties.
- Clear the Enable Resource Governor check box and select OK.
To disable resource governor using [!INCLUDEtsql], execute the ALTER RESOURCE GOVERNOR DISABLE
statement.
The following example disables resource governor.
ALTER RESOURCE GOVERNOR DISABLE;