| title | Change Workload Group Settings | ||
|---|---|---|---|
| description | Learn how to change workload group settings of the default and user-defined workload groups using SQL Server Management Studio or Transact-SQL. | ||
| author | WilliamDAssafMSFT | ||
| ms.author | wiassaf | ||
| ms.reviewer | dfurman | ||
| ms.date | 01/02/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]
You can change workload group settings by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql].
Changing workload group settings requires the CONTROL SERVER permission.
To change workload group settings using SQL Server Management Studio (SSMS):
- In Object Explorer, expand the Management node down to and including the Workload Groups folder that contains the workload group to be modified.
- Use the context menu for the workload group to be modified, and select Properties.
- In the Resource Governor Properties page, select the row for the workload group in the Workload groups for resource pool grid.
- Select the cells in the row to be changed, and enter new values.
- To save the changes, select OK.
To change workload group settings using [!INCLUDEtsql]:
- Execute the ALTER WORKLOAD GROUP statement specifying the values to be changed.
- Execute the
ALTER RESOURCE GOVERNOR RECONFIGUREstatement for the changes to take effect.
The following example changes the max memory grant percent setting for the workload group named groupAdhoc and makes the new configuration effective.
ALTER WORKLOAD GROUP groupAdhoc WITH (REQUEST_MAX_MEMORY_GRANT_PERCENT = 30);
ALTER RESOURCE GOVERNOR RECONFIGURE;