---
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:
- "Resource Governor, templates"
ms.assetid: f342dec2-d1d6-483e-b44e-98eb7d168b5e
author: julieMSFT
ms.author: jrasnick
---
# Configure Resource Governor Using a Template
[!INCLUDE[appliesto-ss-asdbmi-xxxx-xxx-md](../../includes/appliesto-ss-asdbmi-xxxx-xxx-md.md)]
You can configure Resource Governor by using a template that is provided in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)].
- **Before you begin:** [Permissions](#Permissions)
- **To create a workload group, using:** [a template](#ConfRGTemplate)
## Before You Begin
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.
### Permissions
The resource governor [!INCLUDE[tsql](../../includes/tsql-md.md)] statements in the template require CONTROL SERVER permission.
## Configure Resource Governor Using a Template
**To configure resource governor by using a template in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)]**
1. In [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)], on the **View** menu, click **Template Explorer**.
2. In **Template Explorer**, expand **Resource Governor**, and then double-click **Configure Resource Governor**.
3. 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.
4. 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.
5. To save the changes that you make to the template, click **OK**.
6. To run the query, click **Execute**.
## See Also
[Resource Governor](../../relational-databases/resource-governor/resource-governor.md)
[Enable Resource Governor](../../relational-databases/resource-governor/enable-resource-governor.md)
[Resource Governor Resource Pool](../../relational-databases/resource-governor/resource-governor-resource-pool.md)
[Resource Governor Workload Group](../../relational-databases/resource-governor/resource-governor-workload-group.md)
[Resource Governor Classifier Function](../../relational-databases/resource-governor/resource-governor-classifier-function.md)
[View Resource Governor Properties](../../relational-databases/resource-governor/view-resource-governor-properties.md)
[CREATE RESOURCE POOL (Transact-SQL)](../../t-sql/statements/create-resource-pool-transact-sql.md)
[CREATE WORKLOAD GROUP (Transact-SQL)](../../t-sql/statements/create-workload-group-transact-sql.md)
[CREATE FUNCTION (Transact-SQL)](../../t-sql/statements/create-function-transact-sql.md)
[ALTER RESOURCE GOVERNOR (Transact-SQL)](../../t-sql/statements/alter-resource-governor-transact-sql.md)