Share via


Copy a Policy-Based Management Facet State to an XML File

This topic describes how to how to copy the state of a Policy-Based Management facet to an XML file in SQL Server 2012 by using SQL Server Management Studio.

In This Topic

  • Before you begin:

    Security

  • To copy a facet state to an XML file, using:

    SQL Server Management Studio

    Transact-SQL

Before You Begin

Security

Permissions

The procedures in this topic require membership in the PolicyAdministratorRole role in the msdb database.

Arrow icon used with Back to Top link [Top]

Using SQL Server Management Studio

To copy a facet state to an XML file

  1. In Object Explorer, right-click an instance of SQL Server, instance object, database, or database object, and then click Facets.

  2. In the View Facets – object_name dialog box, click Export Current State as Policy.

  3. In the Export as Policy dialog box, type the path and name of the file; or use the Browse (...) button to locate the file, and then type the name of the XML file. For more information on the available options in this dialog box, see Export As Policy Dialog Box

  4. When finished, click OK.

Arrow icon used with Back to Top link [Top]