Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 759b621

Browse files
20250103 refresh: edits, samples, links (#32725)
Co-authored-by: WilliamDAssafMSFT <74387232+WilliamDAssafMSFT@users.noreply.github.com>
1 parent 5ca0feb commit 759b621

30 files changed

Lines changed: 2431 additions & 2047 deletions

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59404,6 +59404,11 @@
5940459404
"source_path": "docs/ssdt/how-to-create-a-new-database-project.md",
5940559405
"redirect_url": "/sql/tools/sql-database-projects/get-started",
5940659406
"redirect_document_id": false
59407+
},
59408+
{
59409+
"source_path": "docs/relational-databases/resource-governor/create-and-test-a-classifier-user-defined-function.md",
59410+
"redirect_url": "/sql/relational-databases/resource-governor/resource-governor-walkthrough",
59411+
"redirect_document_id": false
5940759412
}
5940859413
]
5940959414
}

docs/includes/drop-workload-group.md

Lines changed: 0 additions & 63 deletions
This file was deleted.
Lines changed: 69 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,80 @@
11
---
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.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
6-
ms.date: "03/17/2016"
6+
ms.reviewer: dfurman
7+
ms.date: 01/02/2025
78
ms.service: sql
89
ms.subservice: performance
9-
ms.topic: conceptual
10+
ms.topic: how-to
1011
helpviewer_keywords:
1112
- "Resource Governor, resource pool alter"
1213
- "resource pools [SQL Server], alter"
14+
monikerRange: ">= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current"
1315
---
14-
# Change Resource Pool Settings
16+
17+
# Change resource pool settings
18+
1519
[!INCLUDE [SQL Server SQL MI](../../includes/applies-to-version/sql-asdbmi.md)]
1620

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 &#40;Transact-SQL&#41;](../../t-sql/statements/alter-resource-pool-transact-sql.md)
72-
[ALTER RESOURCE GOVERNOR &#40;Transact-SQL&#41;](../../t-sql/statements/alter-resource-governor-transact-sql.md)
73-
[CREATE EXTERNAL RESOURCE POOL &#40;Transact-SQL&#41;](../../t-sql/statements/create-external-resource-pool-transact-sql.md)
74-
[ALTER EXTERNAL RESOURCE POOL &#40;Transact-SQL&#41;](../../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)
Lines changed: 58 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,68 @@
11
---
2-
title: "Change Workload Group Settings"
3-
description: Learn how to change workload group settings of the default and user-defined workload groups by using SQL Server Management Studio or Transact-SQL.
2+
title: Change Workload Group Settings
3+
description: Learn how to change workload group settings of the default and user-defined workload groups using SQL Server Management Studio or Transact-SQL.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
6-
ms.date: "03/06/2017"
6+
ms.reviewer: dfurman
7+
ms.date: 01/02/2025
78
ms.service: sql
89
ms.subservice: performance
9-
ms.topic: conceptual
10+
ms.topic: how-to
1011
helpviewer_keywords:
1112
- "workload groups [SQL Server], alter"
1213
- "Resource Governor, workload group alter"
14+
monikerRange: ">= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current"
1315
---
14-
# Change Workload Group Settings
16+
17+
# Change workload group settings
18+
1519
[!INCLUDE [SQL Server SQL MI](../../includes/applies-to-version/sql-asdbmi.md)]
16-
You can change workload group settings by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)].
17-
18-
- **Before you begin:** [Limitations and Restrictions](#LimitationsRestrictions), [Permissions](#Permissions)
19-
20-
- **To change the settings for a workload group, using:** [SQL Server Management Studio](#ChgWGProp), [Transact-SQL](#ChgWGTSQL)
21-
22-
## Before You Begin
23-
24-
### <a name="LimitationsRestrictions"></a> Limitations and Restrictions
25-
You can change the settings of the default workload group and user-defined workload groups.
26-
27-
**REQUEST_MAX_MEMORY_GRANT_PERCENT**
28-
29-
The memory consumed by index creation on a non-aligned partitioned table is proportional to the number of partitions involved. If the total required memory exceeds the per-query limit, (REQUEST_MAX_MEMORY_GRANT_PERCENT) imposed by the workload group setting, this index creation may fail. Because the default workload group allows a query to exceed the per-query limit with the minimum required memory to start for SQL Server 2005 compatibility, the user may be able to run the same index creation in the default workload group, if the default resource pool has enough total memory configured to run such a query.
30-
31-
Index creation is allowed to use more memory workspace than initially granted for performance. This special handling is supported by Resource Governor, however, the initial grant and any additional memory grant are limited by the workload group and resource pool settings.
32-
33-
### <a name="Permissions"></a> Permissions
34-
Changing workload group settings requires CONTROL SERVER permission.
35-
36-
## <a name="ChgWGProp"></a> Change Workload Group Settings Using SQL Server Management Studio
37-
**To change workload group settings by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)]**
38-
39-
1. In Object Explorer, recursively expand the **Management** node down to and including the **Workload Groups** folder that contains the workload group to be modified.
40-
41-
2. Right-click the workload group to be modified, and then click **Properties**.
42-
43-
3. In the **Resource Governor Properties** page, select the row for the workload group in the **Workload groups for resource pool** grid if it is not automatically selected.
44-
45-
4. Click or double-click the cells in the row to be changed, and enter the new values.
46-
47-
5. To save the changes, click **OK**
48-
49-
## <a name="ChgWGTSQL"></a> Change Workload Group Settings Using Transact-SQL
50-
**To change workload group settings by using Transact-SQL**
51-
52-
1. Run the ALTER WORKLOAD GROUP statement specifying the property values to be changed.
53-
54-
2. Run the ALTER RESOURCE GOVERNOR RECONFIGURE statement.
55-
56-
### Example (Transact-SQL)
57-
The following example changes the max memory grant percent setting for the workload group named `groupAdhoc`.
58-
59-
```
60-
ALTER WORKLOAD GROUP groupAdhoc
61-
WITH (REQUEST_MAX_MEMORY_GRANT_PERCENT = 30);
62-
GO
63-
ALTER RESOURCE GOVERNOR RECONFIGURE;
64-
GO
65-
```
66-
67-
## See Also
68-
[Resource Governor](../../relational-databases/resource-governor/resource-governor.md)
69-
[Create a Workload Group](../../relational-databases/resource-governor/create-a-workload-group.md)
70-
[Create a Resource Pool](../../relational-databases/resource-governor/create-a-resource-pool.md)
71-
[Change Resource Pool Settings](../../relational-databases/resource-governor/change-resource-pool-settings.md)
72-
[ALTER WORKLOAD GROUP &#40;Transact-SQL&#41;](../../t-sql/statements/alter-workload-group-transact-sql.md)
73-
[ALTER RESOURCE POOL &#40;Transact-SQL&#41;](../../t-sql/statements/alter-resource-pool-transact-sql.md)
74-
[ALTER RESOURCE GOVERNOR &#40;Transact-SQL&#41;](../../t-sql/statements/alter-resource-governor-transact-sql.md)
75-
76-
20+
21+
You can change workload group settings by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)].
22+
23+
<a id="Permissions"></a>
24+
25+
## Permissions
26+
27+
Changing workload group settings requires the `CONTROL SERVER` permission.
28+
29+
<a id="ChgWGProp"></a>
30+
31+
## Change workload group settings using SQL Server Management Studio
32+
33+
To change workload group settings using [[!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)]](../../ssms/download-sql-server-management-studio-ssms.md):
34+
35+
1. In Object Explorer, expand the **Management** node down to and including the **Workload Groups** folder that contains the workload group to be modified.
36+
1. Use the context menu for the workload group to be modified, and select **Properties**.
37+
1. In the **Resource Governor Properties** page, select the row for the workload group in the **Workload groups for resource pool** grid.
38+
1. Select the cells in the row to be changed, and enter new values.
39+
1. To save the changes, select **OK**.
40+
41+
<a id="ChgWGTSQL"></a>
42+
43+
## Change workload group settings using Transact-SQL
44+
45+
To change workload group settings using [!INCLUDE[tsql](../../includes/tsql-md.md)]:
46+
47+
1. Execute the [ALTER WORKLOAD GROUP](../../t-sql/statements/alter-workload-group-transact-sql.md) statement specifying the values to be changed.
48+
1. Execute the `ALTER RESOURCE GOVERNOR RECONFIGURE` statement for the changes to take effect.
49+
50+
### Example
51+
52+
The following example changes the max memory grant percent setting for the workload group named `groupAdhoc` and makes the new configuration effective.
53+
54+
```sql
55+
ALTER WORKLOAD GROUP groupAdhoc WITH (REQUEST_MAX_MEMORY_GRANT_PERCENT = 30);
56+
57+
ALTER RESOURCE GOVERNOR RECONFIGURE;
58+
```
59+
60+
## Related content
61+
62+
- [Resource governor](resource-governor.md)
63+
- [Create a workload group](create-a-workload-group.md)
64+
- [Create a resource pool](create-a-resource-pool.md)
65+
- [Change resource pool settings](change-resource-pool-settings.md)
66+
- [ALTER WORKLOAD GROUP](../../t-sql/statements/alter-workload-group-transact-sql.md)
67+
- [ALTER RESOURCE POOL](../../t-sql/statements/alter-resource-pool-transact-sql.md)
68+
- [ALTER RESOURCE GOVERNOR](../../t-sql/statements/alter-resource-governor-transact-sql.md)

0 commit comments

Comments
 (0)