<?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>SQL Fool &#187; SSMS</title>
	<atom:link href="http://sqlfool.com/tag/ssms/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlfool.com</link>
	<description>Adventures in SQL Tuning - a blog for the rest of us</description>
	<lastBuildDate>Wed, 02 Nov 2011 20:39:11 +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>Webcast Tomorrow!</title>
		<link>http://sqlfool.com/2009/05/webcast-tomorrow/</link>
		<comments>http://sqlfool.com/2009/05/webcast-tomorrow/#comments</comments>
		<pubDate>Wed, 27 May 2009 20:09:30 +0000</pubDate>
		<dc:creator>Michelle Ufford</dc:creator>
				<category><![CDATA[PASS]]></category>
		<category><![CDATA[Presentations]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL Tips]]></category>
		<category><![CDATA[Syndication]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[webcast]]></category>

		<guid isPermaLink="false">http://sqlfool.com/?p=981</guid>
		<description><![CDATA[I'm excited to be doing a webcast tomorrow with the infamous illustrious Brent Ozar for Quest's Pain-of-the-Week. The title is "Getting Started with SQL Server Management Studio," and as you've probably gathered, it's pretty entry-level stuff. If you read my blog, then chances are you don't need to watch this webcast. But if you know [...]]]></description>
			<content:encoded><![CDATA[<p>I'm excited to be doing a webcast tomorrow with the <span style="text-decoration: line-through;">infamous</span> illustrious <a href="http://www.brentozar.com" target="_blank">Brent Ozar</a> for <a href="http://www.quest.com/backstage/pow.aspx" target="_blank">Quest's Pain-of-the-Week</a>.  The title is "<a href="http://www.quest.com/events/listdetails.aspx?contentid=9602&amp;technology=&amp;prod=&amp;prodfamily=&amp;loc" target="_blank">Getting Started with SQL Server Management Studio</a>," and as you've probably gathered, it's pretty entry-level stuff.  If you read my blog, then chances are you don't need to watch this webcast.  But if you know anyone who's trying to learn SQL Server or is trying to make the upgrade from 2000 to 2005/2008, this may be a good webcast for them.</p>
<p>I've also got a few other speaking engagements coming up:</p>
<p>June 2nd: <a href="http://www.cvineta.org/" target="_blank">Cedar Valley .NET User Group</a><br />
I'll be reprising my Iowa Code Camp presentation on "SQL Server for the .NET Developer" for CVINETA.  This presentation focuses on what you need to know about good table design, indexing strategies, and fragmentation... you know, what you wish every .NET developer knew about SQL Server.  <img src='http://sqlfool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>June 11th: <a href="http://www.quest.com/events/listdetails.aspx?contentid=9601&amp;technology=&amp;prod=&amp;prodfamily=&amp;loc=" target="_blank">PoTW: Time-Saving SQL Server Management Studio Tips &amp; Tricks</a><br />
I'll also be doing this webcast with <a href="http://twitter.com/BrentO" target="_blank">@BrentO</a> as a follow-up to our webcast tomorrow.  It will focus on how to save time and improve your sanity by using some neat little tricks in SSMS 2008.</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlfool.com/2009/05/webcast-tomorrow/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>BOL 2008 Update Released</title>
		<link>http://sqlfool.com/2009/05/bol-2008update-released/</link>
		<comments>http://sqlfool.com/2009/05/bol-2008update-released/#comments</comments>
		<pubDate>Fri, 22 May 2009 21:39:22 +0000</pubDate>
		<dc:creator>Michelle Ufford</dc:creator>
				<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[Syndication]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[BOL]]></category>
		<category><![CDATA[books online]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://sqlfool.com/?p=975</guid>
		<description><![CDATA[If you haven't heard, Microsoft released an update to Books Online for SQL Server 2008 yesterday. You can find the download here: http://www.microsoft.com/downloads/details.aspx?FamilyID=765433f7-0983-4d7a-b628-0a98145bcb97&#038;displaylang=en]]></description>
			<content:encoded><![CDATA[<p>If you haven't heard, Microsoft released an update to Books Online for SQL Server 2008 yesterday.  You can find the download here:</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=765433f7-0983-4d7a-b628-0a98145bcb97&#038;displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyID=765433f7-0983-4d7a-b628-0a98145bcb97&#038;displaylang=en</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sqlfool.com/2009/05/bol-2008update-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Registered Servers in SSMS</title>
		<link>http://sqlfool.com/2009/03/registered-servers-in-ssms/</link>
		<comments>http://sqlfool.com/2009/03/registered-servers-in-ssms/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 14:14:35 +0000</pubDate>
		<dc:creator>Michelle Ufford</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL Tips]]></category>
		<category><![CDATA[Syndication]]></category>
		<category><![CDATA[registered servers]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://sqlfool.com/?p=703</guid>
		<description><![CDATA[In my last blog post, I discussed changing the color of the status bar in SSMS 2008. I received a couple of comments and even an e-mail discussing how this doesn't seem to always work. After playing with it for a little bit, I've found that the status bar color needs to be set in [...]]]></description>
			<content:encoded><![CDATA[<p>In my last blog post, I discussed <a href="http://sqlfool.com/2009/03/ssms-server-settings/" target="_blank">changing the color of the status bar in SSMS 2008</a>.  I received a couple of comments and even an e-mail discussing how this doesn't seem to always work.  After playing with it for a little bit, I've found that the status bar color needs to be set in both <strong>Query</strong>-><strong>Connection</strong>-><strong>Connect/Change Connection...</strong> (here-in referred to as simply the Query menu) and <strong>Registered Servers</strong>.</p>
<p>Let's run through this.  First, connect to an instance with any color using the Query menu.</p>
<a href="http://sqlfool.com/blogImages/20090325/SSMS_7.jpg"><img alt="Connecting via the Query menu" src="http://sqlfool.com/blogImages/20090325/SSMS_7.jpg" title="Connecting via the Query menu" width="80%" height="80%" /></a><br />
</br><br />
Now, create a new registered server.  Make sure to use the same server.<br />
</br><br />
<a href="http://sqlfool.com/blogImages/20090325/SSMS_8.jpg"><img alt="Create a New Registered Server" src="http://sqlfool.com/blogImages/20090325/SSMS_8.jpg" title="Create a New Registered Server" width="80%" height="80%" /></a><br />
</br><br />
<div class="wp-caption alignnone" style="width: 418px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_9.jpg"><img alt="New Server Registration" src="http://sqlfool.com/blogImages/20090325/SSMS_9.jpg" title="New Server Registration" width="408" height="517" /></a><p class="wp-caption-text">New Server Registration</p></div><br />
</br><br />
Pick a color, but make sure that it's different than the previous color.  This is just for demonstration purposes only.  Since the whole point is to have a consistent color, you would normally use the same color in both connection methods for the same server.<br />
</br><br />
<div class="wp-caption alignnone" style="width: 418px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_10.jpg"><img alt="Pick a color" src="http://sqlfool.com/blogImages/20090325/SSMS_10.jpg" title="Pick a color" width="408" height="517" /></a><p class="wp-caption-text">Pick a color</p></div><br />
</br><br />
Open a new query window via Registered Servers.<br />
</br><br />
<div class="wp-caption alignnone" style="width: 371px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_11.jpg"><img alt="New Query Window" src="http://sqlfool.com/blogImages/20090325/SSMS_11.jpg" title="New Query Window" width="361" height="338" /></a><p class="wp-caption-text">New Query Window</p></div><br />
</br><br />
<div class="wp-caption alignnone" style="width: 545px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_12.jpg"><img alt="Registered Server Query Window" src="http://sqlfool.com/blogImages/20090325/SSMS_12.jpg" title="Registered Server Query Window" width="90%" height="90%" /></a><p class="wp-caption-text">Registered Server Query Window</p></div><br />
</br><br />
Here's what happens when I connect to the same server using both Registered Servers (left) and another window using the Query menu (right).<br />
</br><br />
<div class="wp-caption alignnone" style="width: 665px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_13.jpg"><img alt="SSMS - Same Server, Different Colors" src="http://sqlfool.com/blogImages/20090325/SSMS_13.jpg" title="SSMS - Same Server, Different Colors" width="80%" height="80%" /></a><p class="wp-caption-text">SSMS - Same Server, Different Colors</p></div>
<p>For anyone who's using both the Query menu and Registered Servers to connect to servers, then you should walk through the process of connecting to each server via both means and changing the colors to ensure consistency.  I did this for 22 servers and it took me less than 10 minutes.</p>
<p>I hope that helps clear up some of the confusion.  <img src='http://sqlfool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Source: <a href="http://sqlfool.com/2009/03/registered-servers-in-ssms/">http://sqlfool.com/2009/03/registered-servers-in-ssms/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sqlfool.com/2009/03/registered-servers-in-ssms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSMS Server Settings</title>
		<link>http://sqlfool.com/2009/03/ssms-server-settings/</link>
		<comments>http://sqlfool.com/2009/03/ssms-server-settings/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 21:05:42 +0000</pubDate>
		<dc:creator>Michelle Ufford</dc:creator>
				<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL Tips]]></category>
		<category><![CDATA[Syndication]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://sqlfool.com/?p=695</guid>
		<description><![CDATA[I think this has been discussed before on better blogs than mine, but it's just so darn cool that I want to help spread the word. In SSMS 2008, you can change the color of the status bar for servers. This gives you a nice visual reminder as to which server you're currently connecting to. [...]]]></description>
			<content:encoded><![CDATA[<p>I think this has been discussed before on better blogs than mine, but it's just so darn cool that I want to help spread the word.</p>
<p>In SSMS 2008, you can change the color of the status bar for servers.  This gives you a nice visual reminder as to which server you're currently connecting to.  Since I've made the DEV/PROD mistake before, this is something I'm a big fan of.  </p>
<p>So let's walk through how you can set this up:</p>
<div class="wp-caption alignnone" style="width: 426px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_1.jpg"><img alt="Opening a new connection" src="http://sqlfool.com/blogImages/20090325/SSMS_1.jpg" title="Opening a new connection" width="416" height="315" /></a><p class="wp-caption-text">Opening a new connection</p></div>
<p>Click on <strong>Options >></strong></p>
<div class="wp-caption alignnone" style="width: 426px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_2.jpg"><img alt="Connection Properties" src="http://sqlfool.com/blogImages/20090325/SSMS_2.jpg" title="Connection Properties" width="416" height="494" /></a><p class="wp-caption-text">Connection Properties</p></div>
<p>Select <strong>Use custom color</strong> and click on <strong>Select...</strong></p>
<div class="wp-caption alignnone" style="width: 232px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_3.jpg"><img alt="Pick a color" src="http://sqlfool.com/blogImages/20090325/SSMS_3.jpg" title="Pick a color" width="222" height="331" /></a><p class="wp-caption-text">Pick a color</p></div>
<p>Choose the color you prefer, then click on <strong>OK</strong></p>
<div class="wp-caption alignnone" style="width: 426px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_4.jpg"><img alt="Open a new query" src="http://sqlfool.com/blogImages/20090325/SSMS_4.jpg" title="Open a new query" width="416" height="494" /></a><p class="wp-caption-text">Open a new query</p></div>
<p>Click on <strong>Connect</strong>.  </p>
<p>That's all there is to it.  Pretty easy, huh?  Now let's see what happens when we connect to multiple servers...</p>
<div class="wp-caption alignnone" style="width: 805px"><a href="http://sqlfool.com/blogImages/20090325/SSMS_5b.jpg"><img alt="Multi-Server Rainbow" src="http://sqlfool.com/blogImages/20090325/SSMS_5b.jpg" title="Multi-Server Rainbow" width="795" height="448" /></a><p class="wp-caption-text">Multi-Server Rainbow</p></div>
<p>Beautiful!  SSMS seems to remember the color settings too, so you should only have to set this up once.  </p>
<p>Source: <a href="http://sqlfool.com/2009/03/ssms-server-settings/">http://sqlfool.com/2009/03/ssms-server-settings/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sqlfool.com/2009/03/ssms-server-settings/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>SQL Tweaks and Tools That Make My Life Easier</title>
		<link>http://sqlfool.com/2008/12/sql-tweaks-and-tools-that-make-my-life-easier/</link>
		<comments>http://sqlfool.com/2008/12/sql-tweaks-and-tools-that-make-my-life-easier/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 14:27:27 +0000</pubDate>
		<dc:creator>Michelle Ufford</dc:creator>
				<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL Tips]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[indexes]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://sqlfool.com/?p=226</guid>
		<description><![CDATA[It still surprises me how many people don't know about some of the very things that make my job so much easier. So this next post is dedicated to sharing some of the tweaks and tools I've run across that will help anyone who works with SQL: &#160; Indexes Anyone who uses included columns is [...]]]></description>
			<content:encoded><![CDATA[<p>It still surprises me how many people don't know about some of the very things that make my job so much easier.  So this next post is dedicated to sharing some of the tweaks and tools I've run across that will help anyone who works with SQL:</p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Indexes</strong></span><br />
Anyone who uses included columns is probably well aware of the frustrations that can come from having to look up information on which columns are included.  I wrote a stored procedure, <a href="http://sqlfool.com/2008/10/index-interrogation-script/" target="_blank">dba_indexLookup_sp</a>, to help me with this, before discovering sp_helpindex2.  If you haven't heard of sp_helpindex2, it's a re-write of sp_helpindex by Kimberly Tripp.  You can find it on <a href="http://www.sqlskills.com/BLOGS/KIMBERLY/post/Updates-(fixes)-to-sp_helpindex2.aspx" target="_blank">Kimberly's blog</a>.  The main difference is Kimberly's is a system stored procedure (mine is not) and my version returns partitioning information (Kimberly's does not).  Check both out and use whichever one meets your needs best.  </p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>KeyBoard ShortCuts</strong></span></p>
<p>In SQL Server Management Studio (SSMS), click on:<br />
&nbsp;&nbsp;&nbsp;&nbsp;Tools --> Options... --> Environment --> Keyboard</p>
<div class="wp-caption alignnone" style="width: 654px"><a href="http://sqlfool.com/blogImages/20081203/tweaks_1.jpg"><img alt="Keyboard Shortcuts" src="http://sqlfool.com/blogImages/20081203/tweaks_1_small.jpg" title="Keyboard Shortcuts" /></a><p class="wp-caption-text">Keyboard Shortcuts</p></div>
<p>For your copying convenience:</p>
<p>Ctrl+3&nbsp;&nbsp;&nbsp;Select Top 100 * From<br />
Ctrl+4&nbsp;&nbsp;&nbsp;sp_tables @table_owner = 'dbo'<br />
Ctrl+5&nbsp;&nbsp;&nbsp;sp_columns<br />
Ctrl+6&nbsp;&nbsp;&nbsp;sp_stored_procedures @sp_owner = 'dbo'<br />
Ctrl+7&nbsp;&nbsp;&nbsp;sp_spaceused<br />
Ctrl+8&nbsp;&nbsp;&nbsp;sp_helptext<br />
Ctrl+9&nbsp;&nbsp;&nbsp;<a href="http://sqlfool.com/2008/10/index-interrogation-script/" target="_blank">dba_indexLookup_sp</a> or <a href="http://www.sqlskills.com/BLOGS/KIMBERLY/post/Updates-(fixes)-to-sp_helpindex2.aspx" target="_blank">sp_helpindex2</a></p>
<p>Please note that these settings will not take effect until you open a new query window.  Here's an example of how you could use this:  use Ctrl+4 to find a list of tables, then copy one into your query window; to view a sample of that table's data, highlight the table name (I usually double-click on it) and press Ctrl+3.  It's a thing of beauty.  Oh, and you may want to remove/change the schema filters if you use schemas other than dbo.</p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Query Execution Settings</strong></span></p>
<p>After having one too many issues arise from non-DBA's connecting to the production environment to run a devastating ad hoc, I've had all of our developers and analysts adopt the following settings.  The only thing difference between my setting and theirs is that I have "Set Statistics IO" selected.  FYI - you can also make these same setting changes in Visual Studio.</p>
<p>In SQL Server Management Studio (SSMS), click on:<br />
&nbsp;&nbsp;&nbsp;&nbsp;Tools --> Options... --> Query Execution --> SQL Server --> Advanced</p>
<div class="wp-caption alignnone" style="width: 654px"><a href="http://sqlfool.com/blogImages/20081203/tweaks_2.jpg"><img alt="Query Execution Settings" src="http://sqlfool.com/blogImages/20081203/tweaks_2_small.jpg" title="Query Execution Settings"/></a><p class="wp-caption-text">Query Execution Settings</p></div>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Copy Behavior</strong></span><br />
This next tip actually has nothing to do with SQL Server, and can be done with any Microsoft product.  However, I just learned about it a few weeks ago and already I use it quite frequently.  </p>
<p>Holding down "Alt" while you drag your mouse will change your selection behavior to block selection.</p>
<div class="wp-caption alignnone" style="width: 826px"><a href="http://sqlfool.com/blogImages/20081203/tweaks_5.jpg"><img alt="Block Selection" src="http://sqlfool.com/blogImages/20081203/tweaks_5_small.jpg" title="Block Selection"/></a><p class="wp-caption-text">Block Selection</p></div>
<p>&nbsp;</p>
<p><strong>Please note:</strong> The following tools requires SQL 2008 Management Studio.  These tools will also work when you connect SQL 2008 SSMS to a 2005 instance.</p>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Object Detail Explorer</strong></span></p>
<p>Finally, there's a reason to use the Object Detail Explorer!  My favorite use is to quickly find the table size and row counts of all the tables in a database.  If these options are not currently available, you may just need to right click on the column headers and add it to the display.</p>
<div class="wp-caption alignnone" style="width: 839px"><a href="http://sqlfool.com/blogImages/20081203/tweaks_3.jpg"><img alt="Object Detail Explorer" src="http://sqlfool.com/blogImages/20081203/tweaks_3_small.jpg" title="Object Detail Explorer"/></a><p class="wp-caption-text">Object Detail Explorer</p></div>
<p>&nbsp;</p>
<p><span style="color: #ff6600;"><strong>Missing Indexes</strong></span></p>
<p>And lastly, when using SSMS 2008 to execute Display Estimated Query Plan (Ctrl+L), it will show you if you're missing any indexes.  This will even work if you connect SSMS 2008 to SQL 2005!</p>
<div class="wp-caption alignnone" style="width: 806px"><a href="http://sqlfool.com/blogImages/20081203/tweaks_4.jpg"><img alt="Missing Index" src="http://sqlfool.com/blogImages/20081203/tweaks_4_small.jpg" title="Missing Index"/></a><p class="wp-caption-text">Missing Index</p></div>
<p>That pretty much covers it for now.  HTH!  <img src='http://sqlfool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Michelle</p>
]]></content:encoded>
			<wfw:commentRss>http://sqlfool.com/2008/12/sql-tweaks-and-tools-that-make-my-life-easier/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

