CREATE WORKLOAD GROUP
defines workload group (no row flow)
What changes
- Input
- catalog
- Output or change
- catalog: workload group
Syntax at a glance
CREATE WORKLOAD GROUP group_name [ WITH ( [ IMPORTANCE = { LOW | MEDIUM | HIGH } ] [ [ , ] REQUEST_MAX_MEMORY_GRANT_PERCENT = value ] [ [ , ] REQUEST_MAX_CPU_TIME_SEC = value ] [ [ , ] REQUEST_MEMORY_GRANT_TIMEOUT_SEC = value ] [ [ , ] MAX_DOP = value ] [ [ , ] GROUP_MAX_REQUESTS = value ] [ [ , ] GROUP_MAX_TEMPDB_DATA_MB = value ] [ [ , ] GROUP_MAX_TEMPDB_DATA_PERCENT = value ] ) ] [ USING { [ pool_name | ...
Work example
A workload classifier needs a group with defined request and resource limits.
Set group limits from measured query demand and verify the classifier maps only the intended sessions.
Check your work A test request enters the intended group and respects its configured limits.
Open Microsoft Learn for full syntax, permissions, and details for your version.