Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 2.97 KB

File metadata and controls

56 lines (42 loc) · 2.97 KB
title Configure Resource Governor Using a Template
description Learn how to configure resource governor by using a template that is provided in SQL Server Management Studio.
author williamdassafmsft
ms.author wiassaf
ms.reviewer dfurman
ms.date 01/02/2025
ms.service sql
ms.subservice performance
ms.topic how-to
helpviewer_keywords
Resource governor, templates
monikerRange >= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current

Configure resource governor using a template

[!INCLUDE SQL Server SQL MI]

You can configure resource governor using a template that is provided in [!INCLUDEssManStudioFull].

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 function that assigns new connections to either the default group or the workload group that you create.

Permissions

The resource governor [!INCLUDEtsql] statements in the template require the CONTROL SERVER permission.

Configure resource governor using a template

To configure resource governor using a template in SQL Server Management Studio (SSMS):

  1. In [!INCLUDEssManStudioFull], open the View menu and select Template Explorer.
  2. In Template Explorer, expand Resource governor, and then select Configure Resource governor.
  3. In Connect to Database Engine, enter the required information, and then select OK. the template Configure Resource governor.sql opens 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, use the Control+Shift+M key combination. In the Specify Values for Template Parameters window, enter the values that you want to use.
  5. To populate the template with the values you entered, select OK.
  6. To execute the query, select Execute.

Related content