join the MSSQLTips community

Today's Site Sponsor


 

SQL Compare quickly and easily compares and synchronizes SQL Server database schemas
 




Monitor Your SQL Server Linked Server Configurations with Policy Based Management

Written By: Thomas LaRock -- 1/20/2010 -- read/post comments -- print -- Bookmark and Share

Rating: (not rated yet) Rate

Problem

You need to quickly ascertain if any linked servers for your SQL Servers have had recent configuration changes. In this tip we cover the step by step process for setting up a policy to check for when there have been any linked server changes to your servers.

Solution

SQL Server 2008 introduced Policy Based Management (PBM) which you can use to determine which linked servers have had recent configuration changes.  Below is the step by step process to set this up. 

If you are not familiar with Policy Based Management (PBM) you can review these articles:


PBM contains a facet named 'Linked Server', and this facet has a property named 'DateLastModified'. You can use this property to build your condition and policy. Right click on policies and select 'New policy...'

In the name field enter in 'Linked Server Modified Check Policy', then click on the arrow in the Check condition dropdown and select 'New condition...':

In the name field enter 'Linked Server Modified Check Condition'. For the Facet select 'Linked Server', then click on the 'Field' dropdown. Select 'DateLastModified', set the operator to be less than or equal to, and then click on the far right ellipses.

In this screen you will want to enter in the following statement:

DateAdd('day', -7, GetDate())

Click 'OK' twice, you should see the following:

Your policy is created, next up is to evaluate, right click on the policy and select evaluate:


Result

Here is a screenshot of a sample result set returned by the policy.


Next Steps

Readers Who Read This Tip Also Read Free Live Webcast Comment or Ask Questions About This Tip


Sponsor Information
Free SQL Server performance monitoring dashboard – Idera SQL check

The SQL Toolbelt – Red Gate’s essential tools for SQL Server

Make the most out of SQL Server - Guaranteed Results - Innovative SQL Server DBAs

SQL PASS | all-expenses-paid trip | Jump on it

Free whitepaper - Developing Something for Nothing with SQL Server: A Closer Look at SQL Server Express


Get Our Tips Newsletter

We keep 50,000+ SQL Server professionals informed.

Red Gate Software - SQL Compare

Quickly and accurately deploy database changes with Red Gate’s SQL Compare. 2/3 of people who use a SQL comparison tool use Red Gate’s SQL Compare – the industry standard database comparison and deployment tool. “We rely on SQL Compare for every deployment.” Paul Tebbut, Technical Lead, Universal Music Group

Download now!



More SQL Server Tools
SQL compliance manager

SQL Prompt

SQL Compare

SQL secure

SQL Data Generator




Copyright (c) 2006-2010 Edgewood Solutions, LLC All rights reserved
privacy statement | disclaimer | copyright | advertise | write for mssqltips | feedback | about
Some names and products listed are the registered trademarks of their respective owners.


CareerQandA.com | MSSharePointTips.com | MSSQLTips.com