<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Benchmark IT Consulting &#187; SSMS</title>
	<atom:link href="http://benchmarkitconsulting.com/tag/ssms/feed/" rel="self" type="application/rss+xml" />
	<link>http://benchmarkitconsulting.com</link>
	<description>My Thoughts on SQL Server and anything else I can think of...</description>
	<lastBuildDate>Tue, 07 Sep 2010 19:46:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fail Whale for SSMS and CMS for PBM using PS</title>
		<link>http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/</link>
		<comments>http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 21:56:50 +0000</pubDate>
		<dc:creator>Colin Stasiuk</dc:creator>
				<category><![CDATA[Benchmark IT Consulting]]></category>
		<category><![CDATA[Colin Stasiuk]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[PBM]]></category>
		<category><![CDATA[Policy Based Management]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[PS]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://benchmarkitconsulting.com/?p=1126</guid>
		<description><![CDATA[Translation: Fail Whale for SQL Server Management Studio and Central Management Server for Policy Based Managment using PowerShell&#8230;. lol simple eh? So this is a Microsoft Connect Item in the making&#8230; I had created a PowerShell script to run a bunch of policies against a list of servers that I defined in a ServerList.txt file.  [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1127" title="fwwwwww" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/09/fwwwwww.png" alt="fwwwwww" width="240" height="180" /></p>
<p>Translation: Fail Whale for SQL Server Management Studio and Central Management Server for Policy Based Managment using PowerShell&#8230;. lol simple eh?</p>
<p>So this is a Microsoft Connect Item in the making&#8230;</p>
<p>I had created a PowerShell script to run a bunch of policies against a list of servers that I defined in a ServerList.txt file.  I decided that I didn&#8217;t like the idea of needing to maintain a text file and instead of storing the Instance Names in a table somewhere I decided to hook into the Central Managment Server.</p>
<p>So I logged into the server that is currently running the SQL Server Agent job that was doing all this using a ServerList.txt file.  I changed the PowerShell Script to point to my CMS server instead and ran the .ps1 directly on the server using &#8220;sqlps F:\PBM\EvaluatePolicies.ps1&#8243;.  The script ran as expected, used my CMS server, and everything was tickidyboo.  Or so I thought&#8230;.</p>
<p>I decided to do my final check and run the SQL Server Agent job itself&#8230; and it failed.</p>
<p><img class="alignnone size-full wp-image-1129" title="toslkdsl" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/09/toslkdsl.jpg" alt="toslkdsl" width="168" height="132" /></p>
<p>Hmmmm that&#8217;s weird&#8230; so I confirmed that the SQL Server Agent account had access to the CMS server and even granted it explicit sysadmin rights (just for my troubleshooting).</p>
<p><strong>FAIL</strong></p>
<p>I started tweeting about the problem and got some immediate advice from @<a href="http://twitter.com/afernandez" target="_blank">afernandez</a>, <a href="http://twitter.com/russjohnson">@russjohnson</a>, <a href="http://twitter.com/wendy_dance">@wendy_dance</a>, and <a href="http://twitter.com/sqlchicken">@SQLChicken</a>.  While none of the advice solved my problem it was great to have some other &#8220;eyes&#8221; reading my problem and confirming the stuff that I had already thought of and tested.</p>
<p>The SQL Server Agent Service Account is a secure account that I don&#8217;t even have access or the password for so I asked for some help from one of our Server Admins for my troubleshooting&#8230; he logged into the server for me and I tried to run the ps1 file&#8230;.</p>
<p><strong>FAIL</strong></p>
<p>So I opened up SSMS and checked if I could connect to the CMS directly&#8230;.</p>
<p><strong><span style="text-decoration: underline;">SOLUTION:  </span></strong>In order to use a PowerShell script to connect to the Central Management Server using the SQL Server Agent the service account that SQL Server Agent is running under must REGISTER the CMS Server through SSMS on the Server that is running the job.</p>
<p>Did you get all that&#8230;. because I had never Remote Desktopped onto the Server using the SQL Server Agent service account and Registered the CMS Server in SSMS using that account when I tried to access the CMS Server through my PowerShell script it failed.</p>
<p>I registered the CMS Server using the SQL Server Agent Service Account and everything started sizzling like bacon on a hot pan.</p>
<p>Enjoy!!</p>
<p><span><a href="http://benchmarkitconsulting.com" target="_blank"><img class="alignnone size-full wp-image-402" title="benchmark_sm" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/02/benchmark_sm.jpg" alt="" width="157" height="74" /></a><a href="http://sqlserverpedia.com/wiki/Editors#Colin_Stasiuk" target="_blank"><img src="http://sqlserverpedia.com/badges/SQLServerPedia_Badge_Blogger.jpg" alt="" width="120" height="60" /> </a></span></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Fail+Whale+for+SSMS+and+CMS+for+PBM+using+PS+http://tinyurl.com/npkg83" title="Post to Twitter"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/&amp;title=Fail+Whale+for+SSMS+and+CMS+for+PBM+using+PS" title="Post to Delicious"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-delicious-big4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/&amp;title=Fail+Whale+for+SSMS+and+CMS+for+PBM+using+PS" title="Post to Digg"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-digg-big4.png" alt="Post to Digg" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/&amp;title=Fail+Whale+for+SSMS+and+CMS+for+PBM+using+PS" title="Post to StumbleUpon"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-su-big4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sound Notification When Query Finishes Executing</title>
		<link>http://benchmarkitconsulting.com/colin-stasiuk/2009/03/26/sound-notification-when-query-finishes-executing/</link>
		<comments>http://benchmarkitconsulting.com/colin-stasiuk/2009/03/26/sound-notification-when-query-finishes-executing/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 16:28:27 +0000</pubDate>
		<dc:creator>Colin Stasiuk</dc:creator>
				<category><![CDATA[Benchmark IT Consulting]]></category>
		<category><![CDATA[Colin Stasiuk]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Management Studio]]></category>
		<category><![CDATA[Notification]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://benchmarkitconsulting.com/?p=603</guid>
		<description><![CDATA[So on twitter this morning a question was asked about attaching a sound file to SQL Server Management Studio to play a sound when a query completes. So I decided to poke around the managment studio a bit and under Tools -&#62; Options if you select Query Results there is a checkbox for playing the [...]]]></description>
			<content:encoded><![CDATA[<p>So on twitter this morning a question was asked about attaching a sound file to SQL Server Management Studio to play a sound when a query completes.</p>
<p>So I decided to poke around the managment studio a bit and under Tools -&gt; Options if you select Query Results there is a checkbox for playing the default beep when a query batch completes.</p>
<p><img class="aligncenter size-full wp-image-604" title="beep" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/03/beep.jpg" alt="beep" width="702" height="585" /></p>
<p> </p>
<p>Who knew? I didn&#8217;t LOL</p>
<p>Granted this doesn&#8217;t give you the option to attach your own sound&#8230; but I imagine there are some smart folks out there that would be able to &#8220;hack-fu&#8221; something if needed hehehe <img src='http://benchmarkitconsulting.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Enjoy!!</p>
<p style="text-align: left;"><a href="http://benchmarkitconsulting.com"><img class="alignnone size-full wp-image-402" title="benchmark_sm" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/02/benchmark_sm.jpg" alt="" /></a><a href="http://sqlserverpedia.com/wiki/Editors#Colin_Stasiuk" target="_blank"><img src="http://sqlserverpedia.com/badges/SQLServerPedia_Badge_Blogger.jpg" alt="" /> </a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Sound+Notification+When+Query+Finishes+Executing+http://tinyurl.com/cwdd88" title="Post to Twitter"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/03/26/sound-notification-when-query-finishes-executing/&amp;title=Sound+Notification+When+Query+Finishes+Executing" title="Post to Delicious"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-delicious-big4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/03/26/sound-notification-when-query-finishes-executing/&amp;title=Sound+Notification+When+Query+Finishes+Executing" title="Post to Digg"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-digg-big4.png" alt="Post to Digg" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/03/26/sound-notification-when-query-finishes-executing/&amp;title=Sound+Notification+When+Query+Finishes+Executing" title="Post to StumbleUpon"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-su-big4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://benchmarkitconsulting.com/colin-stasiuk/2009/03/26/sound-notification-when-query-finishes-executing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
