Running Adhoc queries against multiple servers using SSMS 2008

Getting information from multi servers for a query is a big process for DBAs and we don’t have a direct option available till SQL 2008 Client tools. We need to write our own manual batch file to execute the query against all the server to fetch the information. In SQL Server 2008 management studio MS team has introduced this in SQL Server management studio 2008.

This is a good feature for DBAs to capture the information in one stretch across all the servers. The destination servers can be SQL2000 or SQL2005 or SQL2008 (if you are using sql2k then your queries shouldn’t use any new features, say if you use DMV’s and if you try to execute it against SQL2K, then you will be thrown with error). To use this feature first you need to register all the list of servers under registered servers. Once it’s done you can right click on the group and click on new query and execute it. You can find the details in the images shown below

multserver_query_1

multserver_query_2

VN:F [1.9.13_1145]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)
Running Adhoc queries against multiple servers using SSMS 2008, 5.0 out of 5 based on 1 rating
  1. DotNetShoutout - trackback on September 30, 2009 at 9:34 am

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackbacks and Pingbacks: