title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | helpviewer_keywords | monikerRange | |
---|---|---|---|---|---|---|---|---|---|---|---|
Enable Resource Governor |
Learn how to enable resource governor using either SQL Server Management Studio or Transact-SQL. |
WilliamDAssafMSFT |
wiassaf |
dfurman |
04/09/2025 |
sql |
performance |
how-to |
|
>= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current |
[!INCLUDE SQL Server SQL MI]
Resource governor is turned off by default. You can enable resource governor using either [!INCLUDEssManStudioFull] or [!INCLUDEtsql].
For configuration and monitoring examples and to learn resource governor best practices, see Tutorial: Resource governor configuration examples and best practices.
Enabling resource governor has the following results:
- The classifier function is executed for new connections so that workloads can be assigned to workload groups.
- The resource limits that are specified in resource governor configuration are honored and enforced.
You can't use the ALTER RESOURCE GOVERNOR
statement as part of a user transaction.
Enabling resource governor requires the CONTROL SERVER
permission.
To enable 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 Enable.
To enable resource governor by 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.
- Select the Enable Resource Governor check box and select OK.
To enable resource governor using [!INCLUDEtsql], execute the ALTER RESOURCE GOVERNOR RECONFIGURE
statement.
The following example enables resource governor and makes all prior resource governor configuration changes effective.
ALTER RESOURCE GOVERNOR RECONFIGURE;