﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Jonathan Kehayias  / Multiple Server Queries with SSMS 2008 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 18:22:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Multiple Server Queries with SSMS 2008</title><link>http://www.sqlservercentral.com/Forums/Topic552398-1365-1.aspx</link><description>What a great tip.  Thank you!  It infuriates me that Microsoft wouldn't document better something as useful as this.</description><pubDate>Thu, 21 Aug 2008 22:22:03 GMT</pubDate><dc:creator>mishaluba</dc:creator></item><item><title>RE: Multiple Server Queries with SSMS 2008</title><link>http://www.sqlservercentral.com/Forums/Topic552398-1365-1.aspx</link><description>That was extremely useful, thank you.</description><pubDate>Wed, 20 Aug 2008 13:51:06 GMT</pubDate><dc:creator>timothyawiseman</dc:creator></item><item><title>RE: Multiple Server Queries with SSMS 2008</title><link>http://www.sqlservercentral.com/Forums/Topic552398-1365-1.aspx</link><description>yeah thats the problem, we here supporting 100+ environment, without access to the box, only sysadmin  access...making a check everyday to ensure all of them are in sync and basic configuration is not changes...ddl changes, security changes tracking are some of the tasks needed to ensure a good control...as of now using sqlcmd to do this tasks...it was quite painful thoughlets hope somebody has explored that option and have right solution...</description><pubDate>Mon, 18 Aug 2008 17:30:10 GMT</pubDate><dc:creator>Prakash Heda</dc:creator></item><item><title>RE: Multiple Server Queries with SSMS 2008</title><link>http://www.sqlservercentral.com/Forums/Topic552398-1365-1.aspx</link><description>The multi server query is actually executed as separate batches on each server, so any statements being run are still batch scoped which means they will complete inside their respective connection.  So if you issue a create the table statement, it is run on each server in the database that is selected in the dropdown.  The same goes for Inserts.  The aggregation of the data and display with server name happens client side by SSMS.  This is why you can control the ServerName being ON/OFF with a change to the Options under Tools.Your question actually points out an extremely valuable use for this that I never actually considered previously.  I have seen a number of questions where someone wants to update a database across multiple servers, like a development farm with the same piece of code.  I worked in one company that had 24 different development instances to manage consistently.  Changing one core procedure would require changing the connection 24 times to deploy it to everywhere.  This is easily accomplished with Multi-server queries, and I'll have to call a buddy of mine who actually has a nightmarish development environment like I describe above and tell him about this.</description><pubDate>Mon, 18 Aug 2008 16:51:21 GMT</pubDate><dc:creator>Jonathan Kehayias</dc:creator></item><item><title>RE: Multiple Server Queries with SSMS 2008</title><link>http://www.sqlservercentral.com/Forums/Topic552398-1365-1.aspx</link><description>Thanks, i was using this technique for a while, what i couldn't figure out it how the resultset of all these servers can be store in one table in one database for future usage?Appriciate any response...Thx ~ Prakash</description><pubDate>Mon, 18 Aug 2008 15:19:25 GMT</pubDate><dc:creator>Prakash Heda</dc:creator></item><item><title>RE: Multiple Server Queries with SSMS 2008</title><link>http://www.sqlservercentral.com/Forums/Topic552398-1365-1.aspx</link><description>Excellent observation, Jonathan.  thanks for passing it along. :)</description><pubDate>Thu, 14 Aug 2008 12:23:53 GMT</pubDate><dc:creator>RBarryYoung</dc:creator></item><item><title>RE: Multiple Server Queries with SSMS 2008</title><link>http://www.sqlservercentral.com/Forums/Topic552398-1365-1.aspx</link><description>Pretty cool Jonathan.  Yet another reason to upgrade to 2008.</description><pubDate>Thu, 14 Aug 2008 07:02:05 GMT</pubDate><dc:creator>KenSimmons</dc:creator></item><item><title>Multiple Server Queries with SSMS 2008</title><link>http://www.sqlservercentral.com/Forums/Topic552398-1365-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/SQL+Server+Management+Studio/63650/"&gt;Multiple Server Queries with SSMS 2008&lt;/A&gt;[/B]</description><pubDate>Wed, 13 Aug 2008 21:26:57 GMT</pubDate><dc:creator>Jonathan Kehayias</dc:creator></item></channel></rss>