Import a Policy-Based Management Policy

APPLIES TO: yesSQL Server noAzure SQL Database noAzure SQL Data Warehouse noParallel Data Warehouse

This topic describes how to import a Policy-Based Management policy instance in SQL Server 2017 by using SQL Server Management Studio.

In This Topic

Before You Begin

Limitations and Restrictions

SQL Server ships with policies that can be used to monitor an instance of SQL Server. By default, these policies are not installed on the SQL Server Database Engine, but they can be imported from the default location of C:\Program Files\Microsoft SQL Server###\Tools\Policies\DatabaseEngine\1033 or C:\Program Files (x86)\Microsoft SQL Server###\Tools\Policies\DatabaseEngine\1033 on 64-bit installs.



Requires membership in the PolicyAdministratorRole role in the msdb database.

Using SQL Server Management Studio

To import a policy instance

  1. In Object Explorer, click the plus sign to expand the server where the newly-imported policy instance will reside.

  2. Click the plus sign to expand the Management folder.

  3. Click the plus sign to expand Policy Management.

  4. Right-click the Policies folder and select Import Policy.

  5. In the Import dialog box, type the path and name of the file; or use the Browse (...) button to locate the XML file that contains the policy, and then select the file. For more information on the available options in the Import dialog box, see Import Policies Dialog Box.

  6. When finished, click OK.

We are listening: If you find something outdated or incorrect in this article, such as a step or a code example, please tell us. You can click the This page button in the Feedback section at the bottom of this page. We read every item of feedback about SQL, typically the next day. Thanks.