| title | Enable Resource Governor | |
|---|---|---|
| description | Learn how to enable resource governor using either SQL Server Management Studio or Transact-SQL. | |
| author | WilliamDAssafMSFT | |
| ms.author | wiassaf | |
| ms.reviewer | dfurman | |
| ms.date | 04/09/2025 | |
| ms.service | sql | |
| ms.subservice | performance | |
| ms.topic | how-to | |
| helpviewer_keywords |
|
|
| monikerRange | >= 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 SQL Server Management Studio (SSMS):
- 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;