导出基于策略的管理策略Export a Policy-Based Management Policy
适用于:Applies to: SQL ServerSQL Server(所有支持的版本)
SQL ServerSQL Server (all supported versions)
SQL ServerSQL Server(所有支持的版本)
SQL ServerSQL Server (all supported versions)
本主题介绍如何通过使用 SQL ServerSQL Server 在 SQL Server Management StudioSQL Server Management Studio中导出基于策略的管理策略。This topic describes how to export a Policy-Based Management policy in SQL ServerSQL Server by using SQL Server Management StudioSQL Server Management Studio.
本主题内容In This Topic
开始之前:Before you begin:
若要导出策略,请使用:To export a policy, using:
开始之前Before You Begin
SecuritySecurity
权限Permissions
要求具有 msdb 数据库中 PolicyAdministratorRole 角色的成员身份。Requires membership in the PolicyAdministratorRole role in the msdb database.
使用 SQL Server Management StudioUsing SQL Server Management Studio
导出策略To export a policy
在对象资源管理器中,单击加号以便展开包含您要导出的基于策略的管理策略的服务器。In Object Explorer, click the plus sign to expand the server that contains the Policy-Based Management policy that you want to export.
单击加号以便展开 “管理” 文件夹。Click the plus sign to expand the Management folder.
单击加号以便展开 “策略管理”。Click the plus sign to expand Policy Management.
单击加号以便展开 “策略” 文件夹。Click the plus sign to expand the Policies folder.
右键单击要导出的策略,然后选择“导出策略”。Right-click the policy that you want to export and select Export Policy.
在 “导出策略” 对话框中,在地址栏中键入文件的路径和名称。In the Export Policy dialog box, type the path and name of the file in the address bar. 或者,在对话框的导航窗格中找到文件的合适位置,然后在 “文件名” 框中键入 XML 文件的名称。Alternately, find a suitable location for the file in the dialog box's navigation pane, and then type the name of the XML file in the File Name box.
完成后,单击“保存”。When finished, click Save.