|
1 | 1 | --- |
2 | | -title: "Change Resource Pool Settings" |
3 | | -description: Learn how to change resource pool settings by using SQL Server Management Studio or Transact-SQL. You must have the CONTROL SERVER permission. |
| 2 | +title: Change Resource Pool Settings |
| 3 | +description: Learn how to change resource pool settings using SQL Server Management Studio or Transact-SQL. |
4 | 4 | author: WilliamDAssafMSFT |
5 | 5 | ms.author: wiassaf |
6 | | -ms.date: "03/17/2016" |
| 6 | +ms.reviewer: dfurman |
| 7 | +ms.date: 01/02/2025 |
7 | 8 | ms.service: sql |
8 | 9 | ms.subservice: performance |
9 | | -ms.topic: conceptual |
| 10 | +ms.topic: how-to |
10 | 11 | helpviewer_keywords: |
11 | 12 | - "Resource Governor, resource pool alter" |
12 | 13 | - "resource pools [SQL Server], alter" |
| 14 | +monikerRange: ">= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current" |
13 | 15 | --- |
14 | | -# Change Resource Pool Settings |
| 16 | + |
| 17 | +# Change resource pool settings |
| 18 | + |
15 | 19 | [!INCLUDE [SQL Server SQL MI](../../includes/applies-to-version/sql-asdbmi.md)] |
16 | 20 |
|
17 | | - You can change resource pool settings by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)]. |
18 | | - |
19 | | -- **Before you begin:** [Limitations and Restrictions](#LimitationsRestrictions), [Permissions](#Permissions) |
20 | | - |
21 | | -- **To change the settings for a resource pool, using:** [SQL Server Management Studio](#ChgRPProp), [Transact-SQL](#ChgRPTSQL) |
22 | | - |
23 | | -## <a name="BeforeYouBegin"></a> Before You Begin |
24 | | - |
25 | | -### <a name="LimitationsRestrictions"></a> Limitations and Restrictions |
26 | | - 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. |
27 | | - |
28 | | - The sums of the minimum CPU percentages and minimum memory percentages for all resource pools must not exceed 100. |
29 | | - |
30 | | -### <a name="Permissions"></a> Permissions |
31 | | - Changing resource pool settings requires CONTROL SERVER permission. |
32 | | - |
33 | | -## <a name="ChgRPProp"></a> Change Resource Pool Settings Using SQL Server Management Studio |
34 | | - **To change resource pool settings by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)]** |
35 | | - |
36 | | -1. In [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)], open Object Explorer and recursively expand the **Management** node down to and including **Resource Pools**. |
37 | | - |
38 | | -2. Right-click the resource pool to be modified, and then click **Properties**. |
39 | | - |
40 | | -3. In the **Resource Governor Properties** page, select the row for the resource pool in the **Resource pools** grid if it is not automatically selected. |
41 | | - |
42 | | -4. Click or double-click the cells in the row to be changed, and enter the new values. |
43 | | - |
44 | | -5. To save the changes, click **OK** |
45 | | - |
46 | | -## <a name="ChgRPTSQL"></a> Change Resource Pool Settings Using Transact-SQL |
47 | | - **To change resource pool settings by using [!INCLUDE[tsql](../../includes/tsql-md.md)]** |
48 | | - |
49 | | -1. Run the **ALTER RESOURCE POOL** or **ALTER EXTERNAL RESOURCE POOL** statement specifying the property values to be changed. |
50 | | - |
51 | | -2. Run the **ALTER RESOURCE GOVERNOR RECONFIGURE** statement. |
52 | | - |
53 | | -### Example (Transact-SQL) |
54 | | - The following example changes the max CPU percentage setting for the resource pool named `poolAdhoc`. |
55 | | - |
56 | | -``` |
57 | | -ALTER RESOURCE POOL poolAdhoc |
58 | | -WITH (MAX_CPU_PERCENT = 25); |
59 | | -GO |
60 | | -ALTER RESOURCE GOVERNOR RECONFIGURE; |
61 | | -GO |
62 | | -``` |
63 | | - |
64 | | -## See Also |
65 | | - [Resource Governor](../../relational-databases/resource-governor/resource-governor.md) |
66 | | - [Enable Resource Governor](../../relational-databases/resource-governor/enable-resource-governor.md) |
67 | | - [Create a Resource Pool](../../relational-databases/resource-governor/create-a-resource-pool.md) |
68 | | - [Delete a Resource Pool](../../relational-databases/resource-governor/delete-a-resource-pool.md) |
69 | | - [Resource Governor Workload Group](../../relational-databases/resource-governor/resource-governor-workload-group.md) |
70 | | - [Resource Governor Classifier Function](../../relational-databases/resource-governor/resource-governor-classifier-function.md) |
71 | | - [ALTER RESOURCE POOL (Transact-SQL)](../../t-sql/statements/alter-resource-pool-transact-sql.md) |
72 | | - [ALTER RESOURCE GOVERNOR (Transact-SQL)](../../t-sql/statements/alter-resource-governor-transact-sql.md) |
73 | | - [CREATE EXTERNAL RESOURCE POOL (Transact-SQL)](../../t-sql/statements/create-external-resource-pool-transact-sql.md) |
74 | | - [ALTER EXTERNAL RESOURCE POOL (Transact-SQL)](../../t-sql/statements/alter-external-resource-pool-transact-sql.md) |
75 | | - |
76 | | - |
| 21 | +You can change resource pool settings by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)]. |
| 22 | + |
| 23 | +<a id="BeforeYouBegin"></a> |
| 24 | + |
| 25 | +<a id="LimitationsRestrictions"></a> |
| 26 | + |
| 27 | +### Limitations |
| 28 | + |
| 29 | +- 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. |
| 30 | +- The sums of the minimum CPU percentages and minimum memory percentages for all resource pools must not exceed 100. |
| 31 | + |
| 32 | +<a id="Permissions"></a> |
| 33 | + |
| 34 | +### Permissions |
| 35 | + |
| 36 | +Changing resource pool settings requires the `CONTROL SERVER` permission. |
| 37 | + |
| 38 | +<a id="ChgRPProp"></a> |
| 39 | + |
| 40 | +## Change resource pool settings using SQL Server Management Studio |
| 41 | + |
| 42 | +To change resource pool settings using [[!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)]](../../ssms/download-sql-server-management-studio-ssms.md): |
| 43 | + |
| 44 | +1. In [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)], open Object Explorer and expand the **Management** node down to and including **Resource Pools**. |
| 45 | +1. Use the context menu for the resource pool to be modified, and select **Properties**. |
| 46 | +1. In the **Resource Governor Properties** page, select the row for the resource pool in the **Resource pools** grid. |
| 47 | +1. Select the cells in the row to be changed, and enter new values. |
| 48 | +1. To save the changes, select **OK** |
| 49 | + |
| 50 | +<a id="ChgRPTSQL"></a> |
| 51 | + |
| 52 | +## Change resource pool settings using Transact-SQL |
| 53 | + |
| 54 | +To change resource pool settings using [!INCLUDE[tsql](../../includes/tsql-md.md)]: |
| 55 | + |
| 56 | +1. Execute the [ALTER RESOURCE POOL](../../t-sql/statements/alter-resource-pool-transact-sql.md) or [ALTER EXTERNAL RESOURCE POOL](../../t-sql/statements/alter-external-resource-pool-transact-sql.md) statement specifying the values to be changed. |
| 57 | +1. Execute the `ALTER RESOURCE GOVERNOR RECONFIGURE` statement for the changes to take effect. |
| 58 | + |
| 59 | +### Example |
| 60 | + |
| 61 | +The following example changes the max CPU percentage setting for the resource pool named `poolAdhoc` and makes the new configuration effective. |
| 62 | + |
| 63 | +```sql |
| 64 | +ALTER RESOURCE POOL poolAdhoc WITH (MAX_CPU_PERCENT = 25); |
| 65 | + |
| 66 | +ALTER RESOURCE GOVERNOR RECONFIGURE; |
| 67 | +``` |
| 68 | + |
| 69 | +## Related content |
| 70 | + |
| 71 | +- [Resource governor](resource-governor.md) |
| 72 | +- [Enable resource governor](enable-resource-governor.md) |
| 73 | +- [Create a resource pool](create-a-resource-pool.md) |
| 74 | +- [Delete a resource pool](delete-a-resource-pool.md) |
| 75 | +- [Resource governor workload group](resource-governor-workload-group.md) |
| 76 | +- [Resource governor classifier function](resource-governor-classifier-function.md) |
| 77 | +- [ALTER RESOURCE POOL](../../t-sql/statements/alter-resource-pool-transact-sql.md) |
| 78 | +- [ALTER RESOURCE GOVERNOR](../../t-sql/statements/alter-resource-governor-transact-sql.md) |
| 79 | +- [CREATE EXTERNAL RESOURCE POOL](../../t-sql/statements/create-external-resource-pool-transact-sql.md) |
| 80 | +- [ALTER EXTERNAL RESOURCE POOL](../../t-sql/statements/alter-external-resource-pool-transact-sql.md) |
0 commit comments