<?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>Scratchbox &#124; Zach Stagers</title>
	<atom:link href="http://scratchbox.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://scratchbox.co.uk</link>
	<description>SQL Server Developer and Administrator</description>
	<lastBuildDate>Sat, 23 Feb 2013 14:25:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Carriage Return in Microsoft Excel</title>
		<link>http://scratchbox.co.uk/2012/08/carriage-return-in-microsoft-excel/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=carriage-return-in-microsoft-excel</link>
		<comments>http://scratchbox.co.uk/2012/08/carriage-return-in-microsoft-excel/#comments</comments>
		<pubDate>Wed, 29 Aug 2012 21:30:13 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[Carriage Return]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=551</guid>
		<description><![CDATA[Today, a colleague asked me to help him manipulate a spreadsheet to make it easier and faster for him to turn into an HTML table. He had a spread sheet consisting of 10 or so columns, one of which housed &#8230; <a href="http://scratchbox.co.uk/2012/08/carriage-return-in-microsoft-excel/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Today, a colleague asked me to help him manipulate a spreadsheet to make it easier and faster for him to turn into an HTML table.</p>
<p>He had a spread sheet consisting of 10 or so columns, one of which housed a list of product codes, separated by semi-colons, in a single cell. What he wanted to do was keep the product codes in a single cell, but instead of having them separated by semi-colons, he wanted them each on their own line.</p>
<p>After some initial head scratching, and a little Googling, I came across the ALT command for a carriage return &#8211; Bingo! Once I had this, all that was required was a find replace to replace against the column to replace semi-colon with a carriage return (ALT + 010).</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F&amp;title=Carriage+Return+in+Microsoft+Excel" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F&amp;title=Carriage+Return+in+Microsoft+Excel" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F&amp;title=Carriage+Return+in+Microsoft+Excel" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F&amp;headline=Carriage+Return+in+Microsoft+Excel" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Carriage+Return+in+Microsoft+Excel&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Carriage+Return+in+Microsoft+Excel&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Carriage+Return+in+Microsoft+Excel&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Carriage+Return+in+Microsoft+Excel&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Carriage+Return+in+Microsoft+Excel&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F&amp;title=Carriage+Return+in+Microsoft+Excel&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fcarriage-return-in-microsoft-excel%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/08/carriage-return-in-microsoft-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the TOP 1000 option</title>
		<link>http://scratchbox.co.uk/2012/08/changing-the-top-1000-option/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=changing-the-top-1000-option</link>
		<comments>http://scratchbox.co.uk/2012/08/changing-the-top-1000-option/#comments</comments>
		<pubDate>Mon, 20 Aug 2012 08:00:02 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[SSMS]]></category>
		<category><![CDATA[TOP]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=479</guid>
		<description><![CDATA[I often use a quick SELECT TOP 1000 to get a quick understand of what data is stored in an unfamiliar table, or to retrieve a small extract from a view to hand off to someone else in a spread &#8230; <a href="http://scratchbox.co.uk/2012/08/changing-the-top-1000-option/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I often use a quick SELECT TOP 1000 to get a quick understand of what data is stored in an unfamiliar table, or to retrieve a small extract from a view to hand off to someone else in a spread sheet, and that&#8217;s&#8230; about it.</p>
<p>For those two purposes, do I really need 1000 rows? Certainly not for the first, and the second depends on someone else&#8217;s needs &#8211; and that&#8217;s why I like to lower this to SELECT TOP 100. It&#8217;s ever so slightly less intrusive as it&#8217;s having to ask for fewer rows, but still gets me enough data for me to get the information I want.</p>
<p>Here&#8217;s a very quick run down on how to change your &#8220;SELECT TOP&#8221; option to the number of your choosing:</p>
<ol>
<li>Open SSMS.</li>
<li>From the menu bar, select Tools > Options.</li>
<li>Go into the SQL Server Object Explorer node.</li>
<li>From here, you can change your SELECT TOP option, as well as your EDIT TOP option</li>
</ol>
<div id="attachment_480" class="wp-caption aligncenter" style="width: 766px"><img src="http://scratchbox.co.uk/wp-content/uploads/2012/08/Top-1000-Option.jpg" alt="Top 1000 Option" title="Top 1000 Option" width="756" height="440" class="size-full wp-image-480" /><p class="wp-caption-text">Screenshot showing the aforementioned dialogue box with its default settings</p></div>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F&amp;title=Changing+the+TOP+1000+option" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F&amp;title=Changing+the+TOP+1000+option" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F&amp;title=Changing+the+TOP+1000+option" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F&amp;headline=Changing+the+TOP+1000+option" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Changing+the+TOP+1000+option&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Changing+the+TOP+1000+option&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Changing+the+TOP+1000+option&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Changing+the+TOP+1000+option&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Changing+the+TOP+1000+option&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F&amp;title=Changing+the+TOP+1000+option&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fchanging-the-top-1000-option%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/08/changing-the-top-1000-option/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using dm_db_missing_index_details can be dangerous</title>
		<link>http://scratchbox.co.uk/2012/08/using-dm_db_missing_index_details-can-be-dangerous/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-dm_db_missing_index_details-can-be-dangerous</link>
		<comments>http://scratchbox.co.uk/2012/08/using-dm_db_missing_index_details-can-be-dangerous/#comments</comments>
		<pubDate>Mon, 06 Aug 2012 09:50:12 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[DMV]]></category>
		<category><![CDATA[Indexing]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=465</guid>
		<description><![CDATA[Using the DMV sys.dm_db_missing_index_details to identify and create &#8220;missing&#8221; indexes could be doing you more harm than good. If you read Microsoft books online carefully for information on this DMV, you&#8217;ll notice that under the remarks it states that data &#8230; <a href="http://scratchbox.co.uk/2012/08/using-dm_db_missing_index_details-can-be-dangerous/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Using the DMV sys.dm_db_missing_index_details to identify and create &#8220;missing&#8221; indexes could be doing you more harm than good. If you read <a href="http://msdn.microsoft.com/en-us/library/ms345434%28v=sql.105%29.aspx" target="_blank">Microsoft books online carefully for information on this DMV</a>, you&#8217;ll notice that under the remarks it states that data in the DMV is &#8220;updated when a query is optimized by the query optimizer&#8221;. Ok, big deal, who cares? You should! Why? Because every single query is passed through the query optimizer, and if it believes an index would be useful whilst optimizing the query, a record will be placed in sys.dm_db_missing_index_details. </p>
<p>What this means is that someone could have run a simple one-time query, with no intention of ever running it again, but a record will be placed into the DMV.</p>
<p>With that in mind, you should never, ever, blindly create an index suggested by this DMV. In doing so, you run the risk of solving a problem that isn&#8217;t really there. Having the extra, unnecessary, index will consume valuable overhead whilst performing maintenance tasks and slow the insertion of new data.</p>
<p>So, what is this DMV used for? It&#8217;s still a great little tool in helping identify useful indexes. If you&#8217;re working on a query and believe an index could improve your performance, it may be worth checking in here to see if many other queries could have been helped by the same index.</p>
<p>One of the most useful things you can do with dm_db_missing_index_details, is combine it with dm_db_missing_index_columns, allowing you to apply aggregate functions with ease and see exactly which columns are being utilized heavily and may require an index. I&#8217;ve written the below script which does exactly that:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">SELECT</span> TableName,
       ColumnName,
       <span style="color: #808080;">IN</span>CLUDE,
       EQUALITY,
       <span style="color: #808080;">IN</span>EQUALITY
&nbsp;
<span style="color: #0000FF;">FROM</span> <span style="color: #808080;">&#40;</span>
      <span style="color: #0000FF;">SELECT</span> D.<span style="color: #0000FF;">statement</span> <span style="color: #808080;">&#91;</span>TableName<span style="color: #808080;">&#93;</span>,
	     C.<span style="color: #202020;">column_name</span> <span style="color: #808080;">&#91;</span>ColumnName<span style="color: #808080;">&#93;</span>,
	     C.<span style="color: #202020;">column_name</span>,
	     C.<span style="color: #202020;">column_usage</span>
      <span style="color: #0000FF;">FROM</span> sys.<span style="color: #202020;">dm_db_missing_index_details</span> D
	   <span style="color: #808080;">CROSS</span> APPLY sys.<span style="color: #202020;">dm_db_missing_index_columns</span><span style="color: #808080;">&#40;</span>D.<span style="color: #202020;">index_handle</span><span style="color: #808080;">&#41;</span> C
     <span style="color: #808080;">&#41;</span> Cols
&nbsp;
PIVOT
&nbsp;
     <span style="color: #808080;">&#40;</span>
      <span style="color: #FF00FF;">COUNT</span><span style="color: #808080;">&#40;</span>column_name<span style="color: #808080;">&#41;</span> <span style="color: #0000FF;">FOR</span> column_usage <span style="color: #808080;">IN</span> <span style="color: #808080;">&#40;</span><span style="color: #808080;">&#91;</span><span style="color: #808080;">IN</span>CLUDE<span style="color: #808080;">&#93;</span>, <span style="color: #808080;">&#91;</span>EQUALITY<span style="color: #808080;">&#93;</span>, <span style="color: #808080;">&#91;</span><span style="color: #808080;">IN</span>EQUALITY<span style="color: #808080;">&#93;</span><span style="color: #808080;">&#41;</span>
     <span style="color: #808080;">&#41;</span> PVT
&nbsp;
<span style="color: #0000FF;">ORDER</span> <span style="color: #0000FF;">BY</span> EQUALITY <span style="color: #0000FF;">DESC</span></pre></td></tr></table></div>

<p>Running the above query will give you every single column in the instance you run it against which has, in one way or another, been identified by the query optimizer as requiring an index. The more useful part of the query is the count within the pivot, this is allows you to see how many times the optimizer has deemed an index was required, and for what purpose.</p>
<p>It&#8217;s important to remember that data is cleared down from this DMV every time the instance is restarted, so it has next to no use for a short while after a restart. This again plays a part in making this DMV a dangerous indicator of missing indexes.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F&amp;title=Using+dm_db_missing_index_details+can+be+dangerous" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F&amp;title=Using+dm_db_missing_index_details+can+be+dangerous" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F&amp;title=Using+dm_db_missing_index_details+can+be+dangerous" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F&amp;headline=Using+dm_db_missing_index_details+can+be+dangerous" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Using+dm_db_missing_index_details+can+be+dangerous&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Using+dm_db_missing_index_details+can+be+dangerous&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Using+dm_db_missing_index_details+can+be+dangerous&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Using+dm_db_missing_index_details+can+be+dangerous&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Using+dm_db_missing_index_details+can+be+dangerous&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F&amp;title=Using+dm_db_missing_index_details+can+be+dangerous&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F08%2Fusing-dm_db_missing_index_details-can-be-dangerous%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/08/using-dm_db_missing_index_details-can-be-dangerous/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSRS Default Date Parameter Functions</title>
		<link>http://scratchbox.co.uk/2012/07/ssrs-default-date-parameter-functions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ssrs-default-date-parameter-functions</link>
		<comments>http://scratchbox.co.uk/2012/07/ssrs-default-date-parameter-functions/#comments</comments>
		<pubDate>Tue, 24 Jul 2012 10:19:53 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[SSRS]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[SSRS Parameters]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=371</guid>
		<description><![CDATA[Several months ago, I made a list of date functions I commonly used to set the default value of an SSRS Parameter. I put it on our internal network for my colleagues, and today figured I may as well publish &#8230; <a href="http://scratchbox.co.uk/2012/07/ssrs-default-date-parameter-functions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Several months ago, I made a list of date functions I commonly used to set the default value of an SSRS Parameter. I put it on our internal network for my colleagues, and today figured I may as well publish it on my blog too.</p>
<table>
<tr>
<td><strong>Function</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>Today<br />
(00:00:00)</td>
<td>=DateSerial(Year(Now()), Month(Now()), Day(Now()))</td>
</tr>
<tr>
<td>1st of Current Month<br />
(00:00:00)</td>
<td>=DateSerial(Year(Now()), Month(Now()), 1)</td>
</tr>
<tr>
<td>1st of Last Month<br />
(00:00:00)</td>
<td>=DateSerial(Year(Now()), Month(Now())-1, 1)</td>
</tr>
<tr>
<td>1st of Current Year<br />
(00:00:00)</td>
<td>=DateSerial(Year(Now()), 1, 1)</td>
</tr>
<tr>
<td>Last of Current Month<br />
(23:59:59)</td>
<td>=DateAdd(&#8220;S&#8221;, -1, DateSerial(Year(Now()), Month(Now())+1,1))</td>
</tr>
<tr>
<td>Last of Last Month<br />
(23:59:59)</td>
<td>=DateAdd(&#8220;S&#8221;, -1, DateSerial(Year(Now()), Month(Now()),1))</td>
</tr>
</table>
<p>As with all things, make sure you test before implementing to ensure it does exactly as you need.</p>
<p>If you have a favorite you use regularly, add it to the comments and I&#8217;ll include it in the post.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F&amp;title=SSRS+Default+Date+Parameter+Functions" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F&amp;title=SSRS+Default+Date+Parameter+Functions" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F&amp;title=SSRS+Default+Date+Parameter+Functions" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F&amp;headline=SSRS+Default+Date+Parameter+Functions" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=SSRS+Default+Date+Parameter+Functions&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=SSRS+Default+Date+Parameter+Functions&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=SSRS+Default+Date+Parameter+Functions&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=SSRS+Default+Date+Parameter+Functions&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=SSRS+Default+Date+Parameter+Functions&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F&amp;title=SSRS+Default+Date+Parameter+Functions&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fssrs-default-date-parameter-functions%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/07/ssrs-default-date-parameter-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Challenge: Snap To Nearest Factor</title>
		<link>http://scratchbox.co.uk/2012/07/sql-challenge-snap-to-nearest-factor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-challenge-snap-to-nearest-factor</link>
		<comments>http://scratchbox.co.uk/2012/07/sql-challenge-snap-to-nearest-factor/#comments</comments>
		<pubDate>Tue, 17 Jul 2012 16:25:10 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[SQL Fun]]></category>
		<category><![CDATA[SQL Challenge]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=367</guid>
		<description><![CDATA[In my office, I often have people come over to my desk and say something like &#8220;Zach, I&#8217;ve got a SQL Challenge for you&#8230;&#8221;, and I love it. It gives me a chance to just take a break from what &#8230; <a href="http://scratchbox.co.uk/2012/07/sql-challenge-snap-to-nearest-factor/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>In my office, I often have people come over to my desk and say something like &#8220;Zach, I&#8217;ve got a SQL Challenge for you&#8230;&#8221;, and I love it. It gives me a chance to just take a break from what I&#8217;m doing and engage my brain in something different for a few minutes.</p>
<p>I thought it might be fun to post some of these challenges up on my site, just to see what people come up with &#8211; so, here&#8217;s the latest:</p>
<p><strong>SQL Challenge: Snap To Nearest Factor</strong></p>
<p>A user will select a whole number between 1 and 100 &#8211; You need to be able to &#8220;snap&#8221; that number to the nearest factor of another number.</p>
<p>Example one &#8211; Using a factor of 5 and a number of 19 you should return 20, which is the nearest factor of 5 to 19.</p>
<p>Example two &#8211; Using a factor of 9 and a number of 41, you should return 45.</p>
<p>Lets see what you can come up with. I&#8217;ll post my attempt in the comments at a later date as to not spoil the fun.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">DECLARE</span> @Factor <span style="color: #0000FF;">INT</span> <span style="color: #808080;">=</span> <span style="color: #000;">5</span>
<span style="color: #0000FF;">DECLARE</span> @Num <span style="color: #0000FF;">INT</span> <span style="color: #808080;">=</span> <span style="color: #000;">19</span></pre></td></tr></table></div>

<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F&amp;title=SQL+Challenge%3A+Snap+To+Nearest+Factor" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F&amp;title=SQL+Challenge%3A+Snap+To+Nearest+Factor" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F&amp;title=SQL+Challenge%3A+Snap+To+Nearest+Factor" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F&amp;headline=SQL+Challenge%3A+Snap+To+Nearest+Factor" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=SQL+Challenge%3A+Snap+To+Nearest+Factor&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=SQL+Challenge%3A+Snap+To+Nearest+Factor&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=SQL+Challenge%3A+Snap+To+Nearest+Factor&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=SQL+Challenge%3A+Snap+To+Nearest+Factor&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=SQL+Challenge%3A+Snap+To+Nearest+Factor&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F&amp;title=SQL+Challenge%3A+Snap+To+Nearest+Factor&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-challenge-snap-to-nearest-factor%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/07/sql-challenge-snap-to-nearest-factor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL In The City London 2012 was fun&#8230;</title>
		<link>http://scratchbox.co.uk/2012/07/sql-in-the-city-london-2012-was-fun/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sql-in-the-city-london-2012-was-fun</link>
		<comments>http://scratchbox.co.uk/2012/07/sql-in-the-city-london-2012-was-fun/#comments</comments>
		<pubDate>Sun, 15 Jul 2012 17:48:15 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[Events - Books - Learning]]></category>
		<category><![CDATA[Learning SQL]]></category>
		<category><![CDATA[SQL In The City]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=351</guid>
		<description><![CDATA[A few months ago I posted about a free SQL Server training event, SQL In The City London 2012, being put on in London by the good people of Redgate. Well, yesterday it took place and I thought I&#8217;d write &#8230; <a href="http://scratchbox.co.uk/2012/07/sql-in-the-city-london-2012-was-fun/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A few months ago I posted about a free SQL Server training event, <a href="http://scratchbox.co.uk/2012/05/sql-in-the-city-london-2012/">SQL In The City London 2012</a>, being put on in London by the good people of Redgate. Well, yesterday it took place and I thought I&#8217;d write up a quick post on the day.</p>
<p>The venue was great, it was held at <a href="http://www.onewimpolestreet.co.uk/" target="_blank">One Wimpole Street</a> in London. Very comfy seats, a nice clean building &#8211; but if I were to be critical of something, it would be the temperature. For some reason the air-con was on all day in the auditorium, which makes for some cold limbs when you&#8217;re just sat there listening to talks! Anyway&#8230;</p>
<p>This was the first conference I&#8217;d ever been too, and it was great to see people talk who are so clearly at the top of their game.</p>
<p>The talks were great, and I learned plenty of things to take back to the office with me on Monday morning. A brief outline of what I saw is below:</p>
<p><strong>Brad McGehee: Database Maintenance Essentials</strong> &#8211; This was the first talk of the day, and it was my favourite one. Brad covered a few topics in the hour he had, including importance of proper index and statistic maintenance, some dangerous DMV&#8217;s, the importance of DBCC CHECKDB, and some other bits.</p>
<p><strong>Steve Jones: Prepare for When Disaster Strikes</strong> &#8211; Steve hates it when his phone rings, because nobody ever calls him to see how he&#8217;s days going. If Steve&#8217;s phone is ringing, something&#8217;s broken (sounds familiar, right?). This talk was all about being prepared, and the importance of SLA&#8217;s. He showed off <a href="http://www.red-gate.com/products/sql-development/sql-compare/" target="_blank">Redgate&#8217;s SQL Compare</a>, which would be a very nice tool to have if you do quite a bit of publishing from a UAT environment to a production server &#8211; like I do! Steve is a funny dude, and he was really great with audience (even if he did insult the English&#8217;s sporting ability).</p>
<div id="attachment_359" class="wp-caption aligncenter" style="width: 556px"><img src="http://scratchbox.co.uk/wp-content/uploads/2012/07/Steve_Jones_Disaster_Strikes.jpg" alt="Steve Jones - Preparing for When Disaster Strikes" title="Steve_Jones_Disaster_Strikes" width="546" height="278" class="size-full wp-image-359" /><p class="wp-caption-text">Steve Jones &#8211; Preparing for When Disaster Strikes</p></div>
<p><strong>Brad McGehee: Proactive Data Growth Management</strong> &#8211; Another good talk from Brad, and this one really showed off <a href="http://www.red-gate.com/products/dba/sql-backup/" target="_blank">Redgate&#8217;s SQL Backup Pro</a>. I want it. Compressing your backups by UP TO 95%!! It also has the ability to encrypt backups, which is only available as an option in SQL Server with the use to Transparent Data Encryption (requiring enterprise edition) and lots of other cool features. Brad also stated some pretty incredible statistics, like the fact that in 2011 roughly 1.8 <a href="http://en.wikipedia.org/wiki/Zettabyte" target="_blank">zettabytes</a> of data was generated!</p>
<div id="attachment_360" class="wp-caption aligncenter" style="width: 554px"><img src="http://scratchbox.co.uk/wp-content/uploads/2012/07/Brad_McGehee_Data_Growth_Management.jpg" alt="Brad McGehee - Proactive Data Growth Management" title="Brad_McGehee_Data_Growth_Management" width="544" height="298" class="size-full wp-image-360" /><p class="wp-caption-text">Brad McGehee &#8211; Data Growth Management</p></div>
<p><strong>Steve Jones: AlwaysOn and Contained Databases in SQL Server 2012</strong> &#8211; As someone who hasn&#8217;t really had an opportunity to play with SQL 2012 yet, I really liked seeing some of the newer features. Contained databases look like a big step forward, but I think I need to play around with it myself a little before saying much more than that.</p>
<p><strong>Grant Fritchey: Forgotten Rings and Other Monitoring Stories</strong> &#8211; Aimed at showing off <a href="http://www.red-gate.com/products/dba/sql-monitor/" target="_blank">Redgate&#8217;s SQL Monitor</a>, Grant showed us some of the more awkward to use DMV&#8217;s and DBCC commands, explained why they were generally useless as just a single figures &#8211; therefore requiring a benchmark. This is where SQL Monitor comes to life. It monitors the server constantly, providing benchmarks as well as historic figures for trend analysis.</p>
<p>It was a great day, and I&#8217;d recommend it to any DBA or Database Developer. I learned some genuinely useful things that I can apply in the real world, got to see some of the new 2012 features, a lot of cool industry tools I&#8217;ll be convincing my boss to let me buy, and three of the industries greatest DBA&#8217;s &#8211; <a href="http://www.bradmcgehee.com/" target="_blank">Brad McGehee</a>, <a href="http://www.sqlservercentral.com/" target="_blank">Steve Jones</a>, and <a href="http://www.scarydba.com/" target="_blank">Grant Fritchey</a> &#8211; All SQL Server MVPs.</p>
<p>The people of Redgate did an excellent job organizing the event, and had thought of literately everything. I was a little disappointed that there were multiple talks going on at any one time, as I thought I&#8217;d miss out on some of the other talks I wanted to see. Luckily, this isn&#8217;t an issue at all &#8211; Redgate had all talks filmed, and are going to put them up on the web for attendees to view at a later date &#8211; brilliant. At the end of the event, they let you choose a free book from a selection, but it didn&#8217;t really matter which one you took, as they&#8217;re putting them all up on the site for free download as PDF at some point anyway!</p>
<div id="attachment_355" class="wp-caption aligncenter" style="width: 647px"><img src="http://scratchbox.co.uk/wp-content/uploads/2012/07/Zach_Stagers_Redgate.jpg" alt="Zach_Stagers_Redgate" title="Zach_Stagers_Redgate" width="637" height="560" class="size-full wp-image-355" /><p class="wp-caption-text">Me, with all my free stuff!</p></div>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F&amp;title=SQL+In+The+City+London+2012+was+fun..." target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F&amp;title=SQL+In+The+City+London+2012+was+fun..." target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F&amp;title=SQL+In+The+City+London+2012+was+fun..." target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F&amp;headline=SQL+In+The+City+London+2012+was+fun..." target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=SQL+In+The+City+London+2012+was+fun...&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=SQL+In+The+City+London+2012+was+fun...&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=SQL+In+The+City+London+2012+was+fun...&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=SQL+In+The+City+London+2012+was+fun...&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=SQL+In+The+City+London+2012+was+fun...&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F&amp;title=SQL+In+The+City+London+2012+was+fun...&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Fsql-in-the-city-london-2012-was-fun%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/07/sql-in-the-city-london-2012-was-fun/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Returning vertical data in one horizontal column</title>
		<link>http://scratchbox.co.uk/2012/07/returning-vertical-data-in-one-horizontal-column/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=returning-vertical-data-in-one-horizontal-column</link>
		<comments>http://scratchbox.co.uk/2012/07/returning-vertical-data-in-one-horizontal-column/#comments</comments>
		<pubDate>Mon, 09 Jul 2012 07:35:36 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[T-SQL Querying]]></category>
		<category><![CDATA[Correlated]]></category>
		<category><![CDATA[FOR XML Path]]></category>
		<category><![CDATA[Subquery]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=331</guid>
		<description><![CDATA[Having data in a normalized form is great. It helps eliminate redundant data, and therefore helps save space in the database. In this blog post, I want to discuss how you can query a normalized database to return denormalized data &#8230; <a href="http://scratchbox.co.uk/2012/07/returning-vertical-data-in-one-horizontal-column/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Having data in a normalized form is great. It helps eliminate redundant data, and therefore helps save space in the database. In this blog post, I want to discuss how you can query a normalized database to return denormalized data &#8211; that is, return data from many rows in a single column. I&#8217;ve used this technique a number of times, and below a couple of the ways I&#8217;ve put it to use.</p>
<ul>
<li>At my current company we have a custom service which runs on a nightly basis and sends emails for various reasons. Some emails are sent to the user in question, but also copies in their manager(s). If the user has multiple managers, we need to put both of their email addresses into a single &#8220;CC&#8221; column, separated by a semicolon, as well as the employees email address in the &#8220;To&#8221; column.</li>
<li>Over the last 6 or so months, I&#8217;ve been building my company a Holiday &amp; Sick Day management tool in ASP.Net &amp; C# as a means to teach myself a coding language. In the tool, a manager can view sick days on a calendar by hovering over a highlighted day (indicating there was a sickness on that day), and a tool tip will appear with each person who was ill on that day. The tool tip came straight from a stored procedure in one column, making it much easier for me to utilize in C#.</li>
</ul>
<p>Now that I&#8217;ve given you a small taster of what it&#8217;s used for, I should probably show you some SQL!</p>
<p>Using the second example given above, imagine we have the below query:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">SELECT</span> S.<span style="color: #202020;">SicknessDate</span>,
	   P.<span style="color: #202020;">Name</span>   
&nbsp;
<span style="color: #0000FF;">FROM</span> Person P
	 <span style="color: #808080;">JOIN</span> Sickness S <span style="color: #0000FF;">ON</span> P.<span style="color: #202020;">PersonId</span> <span style="color: #808080;">=</span> S.<span style="color: #202020;">PersonId</span></pre></td></tr></table></div>

<p>Which gives us this dataset:</p>
<p><img class="alignleft size-full wp-image-333" title="Returning vertical data in one horizontal column" src="http://scratchbox.co.uk/wp-content/uploads/2012/07/Returning-vertical-data-in-one-horizontal-column.jpg" alt="Returning vertical data in one horizontal column" width="203" height="80" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Great, we have data! But, we only want 2 rows, one for &#8217;2012-01-01&#8242; containing Zach Stagers and Some Guy, and another for &#8217;2012-03-01&#8242; for Other Fella.</p>
<p>How do we do that? Through the use of a <a href="http://scratchbox.co.uk/2012/05/subqueries-correlated-and-noncorrelated/" target="_blank">correlated subquery</a> making use of <a href="http://scratchbox.co.uk/2012/06/returning-tabular-data-as-xml-with-for-xml-path-and-nested-xml-queries/" target="_blank">FOR XML PATH</a> and the [text()] column name. Here&#8217;s the new code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">SELECT</span> <span style="color: #0000FF;">DISTINCT</span> 
	   S.<span style="color: #202020;">SicknessDate</span>,
	   <span style="color: #808080;">&#40;</span>
		<span style="color: #0000FF;">SELECT</span> Name <span style="color: #808080;">+</span> <span style="color: #FF0000;">', '</span> <span style="color: #808080;">&#91;</span><span style="color: #0000FF;">text</span><span style="color: #808080;">&#40;</span><span style="color: #808080;">&#41;</span><span style="color: #808080;">&#93;</span>
&nbsp;
		<span style="color: #0000FF;">FROM</span> Person P1
			 <span style="color: #808080;">JOIN</span> Sickness S1 <span style="color: #0000FF;">ON</span> P1.<span style="color: #202020;">PersonId</span> <span style="color: #808080;">=</span> S1.<span style="color: #202020;">PersonId</span>
&nbsp;
		<span style="color: #0000FF;">WHERE</span> S1.<span style="color: #202020;">SicknessDate</span> <span style="color: #808080;">=</span> S.<span style="color: #202020;">SicknessDate</span>
&nbsp;
		<span style="color: #0000FF;">FOR</span> XML <span style="color: #0000FF;">PATH</span><span style="color: #808080;">&#40;</span><span style="color: #FF0000;">''</span><span style="color: #808080;">&#41;</span>
	   <span style="color: #808080;">&#41;</span> <span style="color: #808080;">&#91;</span><span style="color: #0000FF;">Names</span><span style="color: #808080;">&#93;</span>
&nbsp;
<span style="color: #0000FF;">FROM</span> Person P
	 <span style="color: #808080;">JOIN</span> Sickness S <span style="color: #0000FF;">ON</span> P.<span style="color: #202020;">PersonId</span> <span style="color: #808080;">=</span> S.<span style="color: #202020;">PersonId</span></pre></td></tr></table></div>

<p>And the new, easier to utilize, data set:</p>
<p><img class="alignleft size-full wp-image-338" title="Returning vertical data in one horizontal column_FIXED" src="http://scratchbox.co.uk/wp-content/uploads/2012/07/Returning-vertical-data-in-one-horizontal-column_FIXED.jpg" alt="Returning vertical data in one horizontal column_FIXED" width="253" height="57" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;<br />
Perfecto! Just what we wanted! The FOR XML PATH subquery kindly does all of the work for us, and the distinct gets rid of duplicate rows caused when multiple people are ill on the same day. In the subquery, we use where the sickness date of the inner query equals the sickness date of the outer query, turn the result into XML (FOR XML PATH(&#8221;)), and tell it to just output it as plain text ([text()]).</p>
<p>I hope you find as useful an implementation for this as I have!</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F&amp;title=Returning+vertical+data+in+one+horizontal+column" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F&amp;title=Returning+vertical+data+in+one+horizontal+column" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F&amp;title=Returning+vertical+data+in+one+horizontal+column" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F&amp;headline=Returning+vertical+data+in+one+horizontal+column" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Returning+vertical+data+in+one+horizontal+column&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Returning+vertical+data+in+one+horizontal+column&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Returning+vertical+data+in+one+horizontal+column&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Returning+vertical+data+in+one+horizontal+column&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Returning+vertical+data+in+one+horizontal+column&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F&amp;title=Returning+vertical+data+in+one+horizontal+column&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F07%2Freturning-vertical-data-in-one-horizontal-column%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/07/returning-vertical-data-in-one-horizontal-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stored Procedure Definition Search</title>
		<link>http://scratchbox.co.uk/2012/06/stored-procedure-definition-search/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=stored-procedure-definition-search</link>
		<comments>http://scratchbox.co.uk/2012/06/stored-procedure-definition-search/#comments</comments>
		<pubDate>Fri, 29 Jun 2012 06:00:32 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[SQL Server Administration]]></category>
		<category><![CDATA[T-SQL Querying]]></category>
		<category><![CDATA[Stored Procedures]]></category>
		<category><![CDATA[System Tables]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=321</guid>
		<description><![CDATA[I just re-discovered this little script in my &#8220;Magic SQL&#8221; folder, and thought I&#8217;d share it. Below is a script to search the definition of all stored procedures in a database for a specified value &#8211; useful in circumstances when &#8230; <a href="http://scratchbox.co.uk/2012/06/stored-procedure-definition-search/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I just re-discovered this little script in my &#8220;Magic SQL&#8221; folder, and thought I&#8217;d share it.</p>
<p>Below is a script to search the definition of all stored procedures in a database for a specified value &#8211; useful in circumstances when you&#8217;re trying to figure out if a particular column is used anywhere in procedure code, or something like that.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #0000FF;">USE</span> DatabaseName
&nbsp;
<span style="color: #0000FF;">DECLARE</span> @SearchString <span style="color: #0000FF;">VARCHAR</span><span style="color: #808080;">&#40;</span><span style="color: #000;">500</span><span style="color: #808080;">&#41;</span>
<span style="color: #0000FF;">SET</span> @SearchString <span style="color: #808080;">=</span> <span style="color: #FF0000;">'Search'</span>
&nbsp;
<span style="color: #0000FF;">SELECT</span> <span style="color: #0000FF;">DISTINCT</span>
       Name
&nbsp;
<span style="color: #0000FF;">FROM</span> sysobjects SO
     <span style="color: #808080;">JOIN</span> syscomments SC <span style="color: #0000FF;">ON</span> SO.<span style="color: #202020;">id</span> <span style="color: #808080;">=</span> SC.<span style="color: #202020;">id</span>
&nbsp;
<span style="color: #0000FF;">WHERE</span> SO.<span style="color: #808080;">&#91;</span>type<span style="color: #808080;">&#93;</span> <span style="color: #808080;">=</span> <span style="color: #FF0000;">'P'</span>
      <span style="color: #808080;">AND</span> SO.<span style="color: #202020;">category</span> <span style="color: #808080;">=</span> <span style="color: #000;">0</span>
      <span style="color: #808080;">AND</span> SC.<span style="color: #808080;">&#91;</span><span style="color: #0000FF;">text</span><span style="color: #808080;">&#93;</span> <span style="color: #808080;">LIKE</span> <span style="color: #FF0000;">'%'</span> <span style="color: #808080;">+</span> @SearchString <span style="color: #808080;">+</span> <span style="color: #FF0000;">'%'</span></pre></td></tr></table></div>

<p>To use the script, change the USE statement to point at the database you&#8217;d like to search, and change the value of @SearchString to the value you&#8217;d like to search for.</p>
<p>The result set will provide the name of any procedures containing the value defined within @SearchString.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F&amp;title=Stored+Procedure+Definition+Search" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F&amp;title=Stored+Procedure+Definition+Search" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F&amp;title=Stored+Procedure+Definition+Search" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F&amp;headline=Stored+Procedure+Definition+Search" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Stored+Procedure+Definition+Search&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Stored+Procedure+Definition+Search&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Stored+Procedure+Definition+Search&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Stored+Procedure+Definition+Search&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Stored+Procedure+Definition+Search&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F&amp;title=Stored+Procedure+Definition+Search&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fstored-procedure-definition-search%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/06/stored-procedure-definition-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Bar Colour Based on SQL Instance Connection</title>
		<link>http://scratchbox.co.uk/2012/06/changing-bar-colour-based-on-sql-instance-connection/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=changing-bar-colour-based-on-sql-instance-connection</link>
		<comments>http://scratchbox.co.uk/2012/06/changing-bar-colour-based-on-sql-instance-connection/#comments</comments>
		<pubDate>Tue, 26 Jun 2012 08:53:27 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[SSMS]]></category>
		<category><![CDATA[Colour Scheme]]></category>
		<category><![CDATA[Connection Settings]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=308</guid>
		<description><![CDATA[I found something extremely useful whilst perusing the MSDN forums the other day &#8211; The fact that you can change the colour of the connection bar in SSMS based on the instance of SQL Server you&#8217;re connected to! It&#8217;s extremely &#8230; <a href="http://scratchbox.co.uk/2012/06/changing-bar-colour-based-on-sql-instance-connection/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I found something extremely useful whilst perusing the MSDN forums the other day &#8211; The fact that you can change the colour of the connection bar in SSMS based on the instance of SQL Server you&#8217;re connected to!</p>
<p>It&#8217;s extremely easy to implement, but helps differentiate which server you&#8217;re looking at when working with multiple servers in multiple tabs. This means you can have one colour for a local server, another for a development testing server, and another for a live environment.</p>
<p>To start using a colour, open up SSMS.</p>
<p>From the Connect to Server dialogue box, click &#8220;Options >>&#8221; to expand the window.</p>
<p>On the Connection tab, select the instance you&#8217;d like to configure.</p>
<p>Go to the Connection Properties tab, and tick &#8220;Use custom color&#8221; &#8211; this while make the &#8220;Select&#8221; button on the same line available. Click &#8220;Select&#8221;, and choose a colour you&#8217;d like to associate with this instance &#8211; note that you can change this as much as you like.</p>
<div id="attachment_309" class="wp-caption aligncenter" style="width: 434px"><img src="http://scratchbox.co.uk/wp-content/uploads/2012/05/SSMS-Custom-Colour.jpg" alt="SSMS Custom Colour" title="SSMS Custom Colour" width="424" height="497" class="size-full wp-image-309" /><p class="wp-caption-text">SSMS Custom Colour</p></div>
<p>Now click &#8220;Connect&#8221; to connect to your chosen instance, and you should notice that the bar towards the bottom of the screen is colour you picked in the last step.</p>
<div id="attachment_310" class="wp-caption aligncenter" style="width: 526px"><img src="http://scratchbox.co.uk/wp-content/uploads/2012/05/SSMS-Bar-Custom-Colour.jpg" alt="SSMS Bar Custom Colour" title="SSMS Bar Custom Colour" width="516" height="25" class="size-full wp-image-310" /><p class="wp-caption-text">SSMS Bar Custom Colour</p></div>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F&amp;title=Changing+Bar+Colour+Based+on+SQL+Instance+Connection" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F&amp;title=Changing+Bar+Colour+Based+on+SQL+Instance+Connection" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F&amp;title=Changing+Bar+Colour+Based+on+SQL+Instance+Connection" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F&amp;headline=Changing+Bar+Colour+Based+on+SQL+Instance+Connection" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Changing+Bar+Colour+Based+on+SQL+Instance+Connection&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Changing+Bar+Colour+Based+on+SQL+Instance+Connection&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Changing+Bar+Colour+Based+on+SQL+Instance+Connection&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Changing+Bar+Colour+Based+on+SQL+Instance+Connection&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Changing+Bar+Colour+Based+on+SQL+Instance+Connection&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F&amp;title=Changing+Bar+Colour+Based+on+SQL+Instance+Connection&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Fchanging-bar-colour-based-on-sql-instance-connection%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/06/changing-bar-colour-based-on-sql-instance-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;ve Joined Twitter &#8211; @ZachStagers</title>
		<link>http://scratchbox.co.uk/2012/06/ive-joined-twitter-zachstagers/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ive-joined-twitter-zachstagers</link>
		<comments>http://scratchbox.co.uk/2012/06/ive-joined-twitter-zachstagers/#comments</comments>
		<pubDate>Sat, 23 Jun 2012 10:50:53 +0000</pubDate>
		<dc:creator>Zach Stagers</dc:creator>
				<category><![CDATA[Events - Books - Learning]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://scratchbox.co.uk/?p=315</guid>
		<description><![CDATA[So, I&#8217;ve finally broken down and joined the Twitter ranks. Why? I thought it might be a good way to receive much more dynamic content by following people who like to talk about MS SQL as much as I do, &#8230; <a href="http://scratchbox.co.uk/2012/06/ive-joined-twitter-zachstagers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>So, I&#8217;ve finally broken down and joined the Twitter ranks. Why? I thought it might be a good way to receive much more dynamic content by following people who like to talk about MS SQL as much as I do, thus helping me grow as a DBA. That&#8217;s the theory, anyway.</p>
<p>I&#8217;ve even unleashed my <a href="https://twitter.com/ZachStagers/status/216469138611245056" target="_blank">very first tweet</a> on the world, explaining how I&#8217;m studying for my <a href="http://www.microsoft.com/learning/en/us/exam.aspx?id=70-432" target="_blank">SQL Server 70-432 exam</a>.</p>
<p>Please feel free to follow me &#8211; <a href="https://twitter.com/ZachStagers" target="_blank">@ZachStagers</a>, or if you&#8217;ve been using Twitter for awhile for the same reasons I&#8217;ve joined, please suggest some  DBA&#8217;s to follow!</p>
<p>You can find my latest tweets, along with my latest MSDN Forum activity at the bottom of this page.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F&amp;title=I%27ve+Joined+Twitter+-+%40ZachStagers" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F&amp;title=I%27ve+Joined+Twitter+-+%40ZachStagers" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F&amp;title=I%27ve+Joined+Twitter+-+%40ZachStagers" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F&amp;headline=I%27ve+Joined+Twitter+-+%40ZachStagers" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=I%27ve+Joined+Twitter+-+%40ZachStagers&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=I%27ve+Joined+Twitter+-+%40ZachStagers&amp;u=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=I%27ve+Joined+Twitter+-+%40ZachStagers&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=I%27ve+Joined+Twitter+-+%40ZachStagers&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=I%27ve+Joined+Twitter+-+%40ZachStagers&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F&amp;title=I%27ve+Joined+Twitter+-+%40ZachStagers&amp;summary=&amp;source=" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fscratchbox.co.uk%2F2012%2F06%2Five-joined-twitter-zachstagers%2F" target="_blank"><img class="lightsocial_img" src="http://scratchbox.co.uk/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://scratchbox.co.uk/2012/06/ive-joined-twitter-zachstagers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
