You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/t-sql/statements/create-workload-group-transact-sql.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "CREATE WORKLOAD GROUP (Transact-SQL) | Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "03/16/2016"
4
+
ms.date: "01/04/2018"
5
5
ms.prod: "sql-non-specified"
6
6
ms.prod_service: "sql-database"
7
7
ms.service: ""
@@ -38,7 +38,6 @@ ms.workload: "Inactive"
38
38
## Syntax
39
39
40
40
```
41
-
42
41
CREATE WORKLOAD GROUP group_name
43
42
[ WITH
44
43
( [ IMPORTANCE = { LOW | MEDIUM | HIGH } ]
@@ -63,21 +62,19 @@ CREATE WORKLOAD GROUP group_name
63
62
Specifies the relative importance of a request in the workload group. Importance is one of the following, with MEDIUM being the default:
64
63
65
64
- LOW
66
-
67
-
- MEDIUM
68
-
65
+
- MEDIUM (default)
69
66
- HIGH
70
67
71
68
> [!NOTE]
72
-
> Internally each importance setting is stored as a number that is used for calculations.
69
+
> Internally each importance setting is stored as a number that is used for calculations.
73
70
74
71
IMPORTANCE is local to the resource pool; workload groups of different importance inside the same resource pool affect each other, but do not affect workload groups in another resource pool.
75
72
76
73
REQUEST_MAX_MEMORY_GRANT_PERCENT =*value*
77
74
Specifies the maximum amount of memory that a single request can take from the pool. This percentage is relative to the resource pool size specified by MAX_MEMORY_PERCENT.
78
75
79
76
> [!NOTE]
80
-
> The amount specified only refers to query execution grant memory.
77
+
> The amount specified only refers to query execution grant memory.
81
78
82
79
*value* must be 0 or a positive integer. The allowed range for *value* is from 0 through 100. The default setting for *value* is 25.
83
80
@@ -100,7 +97,10 @@ CREATE WORKLOAD GROUP group_name
100
97
Specifies the maximum amount of CPU time, in seconds, that a request can use. *value* must be 0 or a positive integer. The default setting for *value* is 0, which means unlimited.
101
98
102
99
> [!NOTE]
103
-
> Resource Governor will not prevent a request from continuing if the maximum time is exceeded. However, an event will be generated. For more information, see [CPU Threshold Exceeded Event Class](../../relational-databases/event-classes/cpu-threshold-exceeded-event-class.md).
100
+
> By default, Resource Governor will not prevent a request from continuing if the maximum time is exceeded. However, an event will be generated. For more information, see [CPU Threshold Exceeded Event Class](../../relational-databases/event-classes/cpu-threshold-exceeded-event-class.md).
101
+
102
+
> [!IMPORTANT]
103
+
> Starting with [!INCLUDE[ssSQL17](../../includes/sssql17-md.md)] CU3, and using [trace flag 2422](../../t-sql/database-console-commands/dbcc-traceon-trace-flags-transact-sql.md), Resource Governor will abort a request when the maximum time is exceeded.
104
104
105
105
REQUEST_MEMORY_GRANT_TIMEOUT_SEC =*value*
106
106
Specifies the maximum time, in seconds, that a query can wait for a memory grant (work buffer memory) to become available.
0 commit comments