Change workload group settings
Applies to: SQL Server Azure SQL Managed Instance
You can change workload group settings by using SQL Server Management Studio or Transact-SQL.
Permissions
Changing workload group settings requires the CONTROL SERVER
permission.
Change workload group settings using SQL Server Management Studio
To change workload group settings using SQL Server Management Studio:
- 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.
Change workload group settings using Transact-SQL
To change workload group settings using Transact-SQL:
- Execute the ALTER WORKLOAD GROUP statement specifying the values to be changed.
- Execute the
ALTER RESOURCE GOVERNOR RECONFIGURE
statement for the changes to take effect.
Example
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;