| title | Configure Resource Governor Using a Template | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 03/16/2017 | |
| ms.prod | sql | |
| ms.reviewer | ||
| ms.technology | performance | |
| ms.topic | conceptual | |
| helpviewer_keywords |
|
|
| ms.assetid | f342dec2-d1d6-483e-b44e-98eb7d168b5e | |
| author | julieMSFT | |
| ms.author | jrasnick |
[!INCLUDEappliesto-ss-asdbmi-xxxx-xxx-md] You can configure Resource Governor by using a template that is provided in [!INCLUDEssManStudioFull].
-
Before you begin: Permissions
-
To create a workload group, using: a template
Use the following steps to open and modify a template that creates a resource pool and a workload group for the pool. In addition, this template enables you to create a classifier user-defined function that routes new connections to either the default group or the workload group that you create.
The resource governor [!INCLUDEtsql] statements in the template require CONTROL SERVER permission.
To configure resource governor by using a template in [!INCLUDEssManStudioFull]
-
In [!INCLUDEssManStudioFull], on the View menu, click Template Explorer.
-
In Template Explorer, expand Resource Governor, and then double-click Configure Resource Governor.
-
In Connect to Database Engine, enter the required information, and then click OK. The template Configure Resource Governor.sql is provided in the Query Editor. Use this template to create and configure a resource pool, a workload group, and a classifier function.
-
To change the values in the template, press CTRL+SHIFT+M. In the Specify Values for Template Parameters window, enter the values that you want to use.
-
To save the changes that you make to the template, click OK.
-
To run the query, click Execute.
Resource Governor
Enable Resource Governor
Resource Governor Resource Pool
Resource Governor Workload Group
Resource Governor Classifier Function
View Resource Governor Properties
CREATE RESOURCE POOL (Transact-SQL)
CREATE WORKLOAD GROUP (Transact-SQL)
CREATE FUNCTION (Transact-SQL)
ALTER RESOURCE GOVERNOR (Transact-SQL)