View or Modify the Properties of a Policy-Based Management Condition
This topic describes how to view or modify the properties of a Policy-Based Management condition in SQL Server 2017 by using SQL Server Management Studio or Transact-SQL.
Before You Begin
Requires membership in the PolicyAdministratorRole role in the msdb database.
Using SQL Server Management Studio
To view or modify a condition's properties
In Object Explorer, click the plus sign to expand the server that contains the condition that you want to view or modify.
Click the plus sign to expand the Management folder.
Click the plus sign to expand Policy Management.
Click the plus sign to expand the Conditions folder.
Right-click the condition that you want to view or edit and select Properties. For more information on the available options in the Open Condition -condition_name dialog box, see Create New Condition or Open Condition Dialog Box, General Page, Open Condition Dialog Box, Dependent Policies Page, Create New Condition or Open Condition Dialog Box, Description Page, and Advanced Edit (Condition) Dialog Box.
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.
To view a condition's properties
In Object Explorer, connect to an instance of Database Engine.
On the Standard bar, click New Query.
Copy and paste the following example into the query window and click Execute.
USE msdb; GO SELECT name, description, facet, expression, is_name_condition, obj_name FROM syspolicy_conditions; GO
For more information, see syspolicy_conditions (Transact-SQL).