Change resource pool settings
Applies to: SQL Server Azure SQL Managed Instance
You can change resource pool settings by using SQL Server Management Studio or Transact-SQL.
Limitations
- The maximum CPU percentage must be equal to or higher than the minimum CPU percentage. The maximum memory percentage must be equal to or higher than the minimum memory percentage.
- The sums of the minimum CPU percentages and minimum memory percentages for all resource pools must not exceed 100.
Permissions
Changing resource pool settings requires the CONTROL SERVER
permission.
Change resource pool settings using SQL Server Management Studio
To change resource pool settings using SQL Server Management Studio:
- In SQL Server Management Studio, open Object Explorer and expand the Management node down to and including Resource Pools.
- Use the context menu for the resource pool to be modified, and select Properties.
- In the Resource Governor Properties page, select the row for the resource pool in the Resource pools grid.
- Select the cells in the row to be changed, and enter new values.
- To save the changes, select OK
Change resource pool settings using Transact-SQL
To change resource pool settings using Transact-SQL:
- Execute the ALTER RESOURCE POOL or ALTER EXTERNAL RESOURCE POOL 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 CPU percentage setting for the resource pool named poolAdhoc
and makes the new configuration effective.
ALTER RESOURCE POOL poolAdhoc WITH (MAX_CPU_PERCENT = 25);
ALTER RESOURCE GOVERNOR RECONFIGURE;