Problem
So, you have created a SQL Server Policy to check database recovery models. Now you need to check the databases on all of your SQL Server instances. In this tip we will show how you can evaluate a SQL Server policy against multiple instances.
Solution
To evaluate the policy against multiple SQL Servers you can use Central Management Servers or Registered Servers. In this tip we will evaluate a policy against SQL Server 2005, SQL Server 2008 and SQL Server 2012 using Central Management Servers.
Prerequisites
To learn more about Policy Based Management please review this tip: Using Policy Based Management in SQL Server 2008.
To learn more about Central Management Servers please review this tip: Execute SQL Server query on multiple servers at the same time.
Checking Policies Across Instances
After you have setup Central Management Servers and created the policy follow these steps:
Step 1
In SQL Server Management Studio (SSMS) click the “View” menu and then click “Registered Servers”

Step 2
Right click on the server or server group under Central Management Servers and select “Evaluate Policies…”

Step 3
Select the source where the policy is saved:

Step 4
Select the policy you want to evaluate:

Step 5
Click “Evaluate” and then review the results as shown below:

Next Steps
- You can also use Registered Servers in SSMS to evaluate a policy on multiple servers. Refer to this tip for more information.
- Create other policies that you want to evaluate on multiple servers
- Read more tips on Policy Based Management
- Read more tips on Central Management Servers

Svetlana has been working in IT for more than 17 years. Most of her career has focused on Database Administration (both SQL Server and Oracle) and Database Development. Databases are Svetlana’s passion, but she also has fun helping co-workers and friends in troubleshooting non-database related issues. Svetlana tries to explore and learn as many SQL Server features as possible. Her favorite SQL Server features are Policy Based Management, SSIS, SSRS and Master Data Services. One of Svetlana’s areas of expertize is cross systems / database integration. Svetlana is currently a hands-on Database Team Lead in Calgary, Canada where she promotes SQL Server.
Svetlana likes to share her knowledge with others and enjoys learning herself. Her hobby is photography, but now she spends her free time away from Database Administration with her little girl who proudly wears her MSSQLTips shirt. Svetlana blogs at http://databaserefresh.com and posts her pictures to https://plus.google.com/u/0/111115767149899859037/posts. Her Twitter account is @magasvs.
- MSSQLTips Awards: Rising Star (50+ tips) – 2018 | Author of the Year Contender – 2015-2017