<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Sankar Reddy SQL Server Developer DBA</title>
	
	<link>http://SankarReddy.com</link>
	<description>Random thoughts about SQL Server</description>
	<lastBuildDate>Mon, 26 Jul 2010 07:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SankarReddySqlServer" /><feedburner:info uri="sankarreddysqlserver" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>37.75735</geo:lat><geo:long>-121.952138</geo:long><feedburner:emailServiceId>SankarReddySqlServer</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>[OT]: Birds</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/cWjx4GlfGo8/</link>
		<comments>http://SankarReddy.com/2010/07/ot-birds/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 05:50:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=428</guid>
		<description><![CDATA[<p>I am NO Paul Randal when it comes to taking pictures or having an avid interest in birds or sharing some exceptional shots of the world. It just happened that my house is the favorite hang out spot for many birds during this hatching season. I usually don&#8217;t post anything that&#8217;s not related to SQL Server <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/07/ot-birds/">[OT]: Birds</a></span>]]></description>
			<content:encoded><![CDATA[<p>I am NO <a href="http://sqlskills.com/BLOGS/PAUL/category/Where-In-The-World-Are-Paul-And-Kimberly.aspx">Paul Randal</a> when it comes to taking pictures or having an avid interest in birds or sharing some exceptional shots of the world. It just happened that my house is the favorite hang out spot for many birds during this hatching season. I usually don&#8217;t post anything that&#8217;s not related to SQL Server here but I couldn&#8217;t resist posting the pictures of these birds.</p>
<p>Well, its time anyway to pause a bit, enjoy life and nature!</p>
<div id="attachment_165" class="wp-caption aligncenter" style="width: 710px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><br />
<img title="Bird 1 (Pigeon) and family" src="http://SankarReddy.com/wp-content/uploads/2010/07/Jul-25-2010-009.jpg" WIDTH=650 HEIGHT=500 alt="Bird 1 (Pigeon) and family" /><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Bird 1 (Pigeon) and family</p></div><br />
<div id="attachment_165" class="wp-caption aligncenter" style="width: 710px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><br />
<img title="Bird 1 (Pigeon) and family" src="http://SankarReddy.com/wp-content/uploads/2010/07/Jul-25-2010-016.jpg" WIDTH=650 HEIGHT=500 alt="Bird 1 (Pigeon) and family" /><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Bird 1 (Pigeon) and family</p></div><br />
<div id="attachment_165" class="wp-caption aligncenter" style="width: 710px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><br />
<img title="Bird 2" src="http://SankarReddy.com/wp-content/uploads/2010/07/Jul-25-2010-035.jpg" WIDTH=650 HEIGHT=500 alt="Bird 2" /><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Bird 2</p></div><br />
<div id="attachment_165" class="wp-caption aligncenter" style="width: 710px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><br />
<img title="Bird 3" src="http://SankarReddy.com/wp-content/uploads/2010/07/Jul-25-2010-028.jpg" WIDTH=650 HEIGHT=500 alt="Bird 3" /><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Bird 3</p></div><br />
<div id="attachment_165" class="wp-caption aligncenter" style="width: 710px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><br />
<img title="Bird 1 (Pigeon) came back for round 2" src="http://SankarReddy.com/wp-content/uploads/2010/07/Jul-25-2010-142.jpg" WIDTH=650 HEIGHT=500 alt="Bird 1 (Pigeon) came back for round 2" /><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Bird 1 (Pigeon) came back for round 2</p></div><br />
<div id="attachment_165" class="wp-caption aligncenter" style="width: 710px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><br />
<img title="Bird 4" src="http://SankarReddy.com/wp-content/uploads/2010/07/Jul-25-2010-145.jpg" WIDTH=650 HEIGHT=500 alt="Bird 4" /><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Bird 4</p></div>
<p>I uploaded few more pictures into facebook, if you are interested to see more.</p>
<p><a href="http://www.facebook.com/?ref=home#!/album.php?aid=67403&#038;id=1051413176">http://www.facebook.com/?ref=home#!/album.php?aid=67403&#038;id=1051413176</a></p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F&amp;title=%5BOT%5D%3A+Birds" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F&amp;title=%5BOT%5D%3A+Birds" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F&amp;title=%5BOT%5D%3A+Birds" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F&amp;headline=%5BOT%5D%3A+Birds" ><img class="lightsocial_img" src="http://SankarReddy.com/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=%5BOT%5D%3A+Birds&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=%5BOT%5D%3A+Birds&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=%5BOT%5D%3A+Birds&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=%5BOT%5D%3A+Birds&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=%5BOT%5D%3A+Birds&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F&amp;title=%5BOT%5D%3A+Birds&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Fot-birds%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=cWjx4GlfGo8:zQroY7hDvKM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=cWjx4GlfGo8:zQroY7hDvKM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=cWjx4GlfGo8:zQroY7hDvKM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=cWjx4GlfGo8:zQroY7hDvKM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=cWjx4GlfGo8:zQroY7hDvKM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=cWjx4GlfGo8:zQroY7hDvKM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=cWjx4GlfGo8:zQroY7hDvKM:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/cWjx4GlfGo8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/07/ot-birds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/07/ot-birds/</feedburner:origLink></item>
		<item>
		<title>Free one day training on Storage and Virtualization with Mr.Denny</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/6pUyO_7aPP8/</link>
		<comments>http://SankarReddy.com/2010/07/free-one-day-training-on-storage-and-virtualization-with-mr-denny/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 01:15:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=423</guid>
		<description><![CDATA[<p>Free training is good, if it is on a special topic important for every DBA then better, if it is coming from an industry expert on the subject then much better, if it is an all day event then excellent, if it is from Mr.Denny then excellent * 2, if you can get all of the <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/07/free-one-day-training-on-storage-and-virtualization-with-mr-denny/">Free one day training on Storage and Virtualization with Mr.Denny</a></span>]]></description>
			<content:encoded><![CDATA[<p>Free training is good, if it is on a special topic important for every DBA then better, if it is coming from an industry expert on the subject then much better, if it is an all day event then excellent, if it is from Mr.Denny then excellent * 2, if you can get all of the above and get cool swag (xbox 360) then excellent * 3.</p>
<p>Why wait? Register for this session on <a href="http://storage-virt-dba-irvine-b3.eventbrite.com/">Storage and Virtualization for the DBA</a> session by Mr.Denny at Microsoft Office in Irvine, CA on Aug 9th 2010.</p>
<p>Yes, the event is on a monday but you will get good training without pluff on the topic. And its about time to burn that vacation day and use it wisely to learn something about the topic if you are around the area. Talk to your manager/supervisor to register for this event as the seats are limited and will fill up as first come first served basis.</p>
<p>Note that this event is priced at $395 at PASS conference and you are getting this for FREE! It&#8217;s a win, win!</p>
<p>Going into 2011, I want to focus on Storage and High availability side in SQL Server and its a good opportunity for me to attend this session and its worth taking a 7 hour drive. <img src='http://SankarReddy.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F&amp;title=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F&amp;title=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F&amp;title=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F&amp;headline=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F&amp;title=Free+one+day+training+on+Storage+and+Virtualization+with+Mr.Denny&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-one-day-training-on-storage-and-virtualization-with-mr-denny%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=6pUyO_7aPP8:ZE0MaywHXrQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=6pUyO_7aPP8:ZE0MaywHXrQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=6pUyO_7aPP8:ZE0MaywHXrQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=6pUyO_7aPP8:ZE0MaywHXrQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=6pUyO_7aPP8:ZE0MaywHXrQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=6pUyO_7aPP8:ZE0MaywHXrQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=6pUyO_7aPP8:ZE0MaywHXrQ:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/6pUyO_7aPP8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/07/free-one-day-training-on-storage-and-virtualization-with-mr-denny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/07/free-one-day-training-on-storage-and-virtualization-with-mr-denny/</feedburner:origLink></item>
		<item>
		<title>Free MSDN Ultimate Subscriptions for a good cause</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/ArvWgukFYdY/</link>
		<comments>http://SankarReddy.com/2010/07/free-msdn-ultimate-subscriptions-for-a-good-cause/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 03:33:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=414</guid>
		<description><![CDATA[<p>Few weeks ago, all of the MVP&#8217;s were given 3 Visual Studio 2010 Ultimate with MSDN activation cards to celebrate the launch of Visual Studio 2010 and .Net Framework 4. I wasn&#8217;t really sure how to make good use of them and wondering what&#8217;s the best way to share these cards. Arnie Rowland (Blog&#124;Twitter) had a <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/07/free-msdn-ultimate-subscriptions-for-a-good-cause/">Free MSDN Ultimate Subscriptions for a good cause</a></span>]]></description>
			<content:encoded><![CDATA[<p>Few weeks ago, all of the MVP&#8217;s were given 3 Visual Studio 2010 Ultimate with MSDN activation cards to celebrate the launch of Visual Studio 2010 and .Net Framework 4. I wasn&#8217;t really sure how to make good use of them and wondering what&#8217;s the best way to share these cards. Arnie Rowland (<a href="http://sqlblog.com/blogs/arnie_rowland/default.aspx">Blog</a>|<a href="http://twitter.com/ArnieRowland/">Twitter</a>) had a great idea to share these to underemployed or unemployed folks who need a helping hand and in return you have to spend some quality time to help a non-profit organization. If you think you are eligible for this offer, contact Arnie directly and you can read his entire post <a href="http://sqlblog.com/blogs/arnie_rowland/archive/2010/07/12/while-you-don-t-get-a-free-lunch-you-will-get-your-just-deserts.aspx">here</a>. </p>
<p>I am also pitching in 2 of my cards for this great cause. Thanks Arnie for taking the initiative on this and making an impact in the community.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F&amp;title=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F&amp;title=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F&amp;title=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F&amp;headline=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F&amp;title=Free+MSDN+Ultimate+Subscriptions+for+a+good+cause&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F07%2Ffree-msdn-ultimate-subscriptions-for-a-good-cause%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ArvWgukFYdY:ORdg6SR9xag:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ArvWgukFYdY:ORdg6SR9xag:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=ArvWgukFYdY:ORdg6SR9xag:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ArvWgukFYdY:ORdg6SR9xag:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ArvWgukFYdY:ORdg6SR9xag:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ArvWgukFYdY:ORdg6SR9xag:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=ArvWgukFYdY:ORdg6SR9xag:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/ArvWgukFYdY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/07/free-msdn-ultimate-subscriptions-for-a-good-cause/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/07/free-msdn-ultimate-subscriptions-for-a-good-cause/</feedburner:origLink></item>
		<item>
		<title>Another Managment Studio custom Keyboard shortcut post</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/MPCKgdgEXzc/</link>
		<comments>http://SankarReddy.com/2010/06/another-managment-studio-custom-keyboard-shortcut-post/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 06:47:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=404</guid>
		<description><![CDATA[<p>At-least 3 people [Aaron Bertand(Blog&#124;Twitter), Michelle Ufford (Blog&#124;Twitter), Aaron Alton (Blog&#124;Twitter)] in the community have blogged about this topic already here, here and here and not sure if we need another post on this topic. But I thought this might help someone and brings something new hopefully!</p>
<p>Having custom keyboard shortcuts is nothing new in Mangement Studio <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/06/another-managment-studio-custom-keyboard-shortcut-post/">Another Managment Studio custom Keyboard shortcut post</a></span>]]></description>
			<content:encoded><![CDATA[<p>At-least 3 people [Aaron Bertand(<a href="http://sqlblog.com/blogs/aaron_bertrand/default.aspx">Blog</a>|<a href="http://twitter.com/Aaronbertrand">Twitter</a>), Michelle Ufford (<a href="http://sqlfool.com/">Blog</a>|<a href="http://twitter.com/sqlfool">Twitter</a>), Aaron Alton (<a href="http://sqlblog.com/blogs/aaron_alton/">Blog</a>|<a href="http://twitter.com/AarontheHobt">Twitter</a>)] in the community have blogged about this topic already <a href="http://sqlblog.com/files/folders/23423/download.aspx">here</a>, <a href="http://sqlfool.com/2008/12/sql-tweaks-and-tools-that-make-my-life-easier/">here</a> and <a href="http://thehobt.blogspot.com/2009/01/lesser-known-features-of-sql-server_15.html">here</a> and not sure if we need another post on this topic. But I thought this might help someone and brings something new hopefully!</p>
<p>Having custom keyboard shortcuts is nothing new in Mangement Studio and most of the times we see stored procedures and occasionally a select statement like the ones listed below are used.<br />
<img src="http://SankarReddy.com/wp-content/uploads/2010/06/Regular_keyboard_shortcuts.jpg" alt="regular keyboard shortcuts in SSMS" /></p>
<p>I never thought of a shortcut for a where clause filter until this <a href="http://social.msdn.microsoft.com/Forums/en-US/sqlgetstarted/thread/a1b6f4e8-f980-4fd2-9fa3-740d08d09318">question</a> came up today. After a couple of tries I am able to make this work. Here is what I had in the shortcut and while running I had to pass the value of the where clause within single quotes like below.</p>
<p><img src="http://SankarReddy.com/wp-content/uploads/2010/06/Where_clause_filter_SSMS.jpg" alt="where clause filter in SSMS" /></p>
<pre class = "brush : sql;">

--keyboard shortcut in SSMS
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 

--How to execute the shortcut for a where clause filter
--Note that you need to highlight the complete word below
--including the single quotes to make this work
'Store'

--Here is the message that's generated from the SSMS.

/*------------------------
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME =  'Store'
------------------------*/
</pre>
<p>That&#8217;s it folks and its a short post. </p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F&amp;title=Another+Managment+Studio+custom+Keyboard+shortcut+post" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F&amp;title=Another+Managment+Studio+custom+Keyboard+shortcut+post" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F&amp;title=Another+Managment+Studio+custom+Keyboard+shortcut+post" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F&amp;headline=Another+Managment+Studio+custom+Keyboard+shortcut+post" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Another+Managment+Studio+custom+Keyboard+shortcut+post&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Another+Managment+Studio+custom+Keyboard+shortcut+post&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Another+Managment+Studio+custom+Keyboard+shortcut+post&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Another+Managment+Studio+custom+Keyboard+shortcut+post&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Another+Managment+Studio+custom+Keyboard+shortcut+post&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F&amp;title=Another+Managment+Studio+custom+Keyboard+shortcut+post&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F06%2Fanother-managment-studio-custom-keyboard-shortcut-post%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=MPCKgdgEXzc:zIqBYBJzOFs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=MPCKgdgEXzc:zIqBYBJzOFs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=MPCKgdgEXzc:zIqBYBJzOFs:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=MPCKgdgEXzc:zIqBYBJzOFs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=MPCKgdgEXzc:zIqBYBJzOFs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=MPCKgdgEXzc:zIqBYBJzOFs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=MPCKgdgEXzc:zIqBYBJzOFs:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/MPCKgdgEXzc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/06/another-managment-studio-custom-keyboard-shortcut-post/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/06/another-managment-studio-custom-keyboard-shortcut-post/</feedburner:origLink></item>
		<item>
		<title>Database Internal version; Create Version and Current Version</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/ekjOiLZU5kY/</link>
		<comments>http://SankarReddy.com/2010/05/database-internal-version-create-version-and-current-version/#comments</comments>
		<pubDate>Sun, 16 May 2010 18:19:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=399</guid>
		<description><![CDATA[<p>UPDATE:  This post is migrated from my old blog on 05/16/2010.</p>
<p>SQL Server has versions, editions, service packs, compatibility levels and Internal versions. Most of the people know about the first 4 and if you are wondering about what is the database internal version then you should look at Database Version vs Database Compatibility Level post <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/05/database-internal-version-create-version-and-current-version/">Database Internal version; Create Version and Current Version</a></span>]]></description>
			<content:encoded><![CDATA[<p><STRONG>UPDATE: </STRONG> This post is migrated from my <a href="http://sankarreddy.spaces.live.com/Blog/cns!1F1B61765691B5CD!463.entry?sa=835176365">old blog</a> on 05/16/2010.</p>
<p>SQL Server has versions, editions, service packs, compatibility levels and Internal versions. Most of the people know about the first 4 and if you are wondering about what is the database internal version then you should look at <a href="http://sqlblog.com/blogs/jonathan_kehayias/archive/2009/07/28/database-version-vs-database-compatibility-level.aspx">Database Version vs Database Compatibility Level</a> post by Jonathan Kehayias and <a href="http://technet.microsoft.com/en-us/magazine/2008.08.sqlqa.aspx">Technet Q&#038;A article</a> by Paul Randal.</p>
<p>Here is a script I wrote to look at what’s the create and current internal database version of all databases. This might be handy if you have to look at multiple databases on different servers.</p>
<pre class = "brush : sql;">

CREATE TABLE #version (
    VersionID INT
    , VersionName VARCHAR (255)
) 

INSERT #version
    SELECT 515, 'SQL Server 7.0' UNION ALL
    SELECT 539, 'SQL Server 2000' UNION ALL
    SELECT 611, 'SQL Server 2005, VARDECIMAL disabled' UNION ALL
    SELECT 612, 'SQL Server 2005, VARDECIMAL enabled' UNION ALL
    SELECT 655, 'SQL Server 2008' UNION ALL
    SELECT 660, 'SQL Server 2008 R2' 

CREATE TABLE #DBCC (
    ParentObject VARCHAR (255)
    , [Object] VARCHAR (255)
    , Field VARCHAR (255)
    , [Value] VARCHAR (255)
) 

CREATE TABLE #DBCCResults (
    ServerName VARCHAR (255)
    , DBName VARCHAR (255)
    , VersionCreated INT
    , CurrentVersion INT
    , CreatedDate DATETIME
) 

EXEC master.dbo.SP_MSFOREACHDB
    @Command1 = 'USE ? INSERT INTO #DBCC EXECUTE (''DBCC DBINFO WITH TABLERESULTS'')'
    , @Command2 = 'INSERT INTO #DBCCResults (ServerName, DBName, VersionCreated, CurrentVersion, CreatedDate)
                        SELECT TOP 1 @@SERVERNAME
                        , ''?''
                        , (SELECT Value FROM #DBCC WHERE Field = ''dbi_createVersion'')
                        , (SELECT Value FROM #DBCC WHERE Field = ''dbi_version'')
                        , (SELECT Value FROM #DBCC WHERE Field = ''dbi_crdate'')
                        FROM #DBCC'
    , @Command3 = 'TRUNCATE TABLE #DBCC' 

SELECT ServerName
    , DBName
    , v1.VersionName AS VersionCreated
    , v2.VersionName AS CurrentVersion
    , CreatedDate
FROM #DBCCResults dr JOIN #version v1
    ON dr.VersionCreated = v1.VersionID
JOIN #version v2
    ON dr.CurrentVersion = v2.VersionID

DROP TABLE #version, #DBCC, #DBCCRESULTS
</pre>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F&amp;title=Database+Internal+version%3B+Create+Version+and+Current+Version" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F&amp;title=Database+Internal+version%3B+Create+Version+and+Current+Version" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F&amp;title=Database+Internal+version%3B+Create+Version+and+Current+Version" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F&amp;headline=Database+Internal+version%3B+Create+Version+and+Current+Version" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Database+Internal+version%3B+Create+Version+and+Current+Version&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Database+Internal+version%3B+Create+Version+and+Current+Version&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Database+Internal+version%3B+Create+Version+and+Current+Version&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Database+Internal+version%3B+Create+Version+and+Current+Version&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Database+Internal+version%3B+Create+Version+and+Current+Version&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F&amp;title=Database+Internal+version%3B+Create+Version+and+Current+Version&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F05%2Fdatabase-internal-version-create-version-and-current-version%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ekjOiLZU5kY:QlbATw3ka28:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ekjOiLZU5kY:QlbATw3ka28:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=ekjOiLZU5kY:QlbATw3ka28:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ekjOiLZU5kY:QlbATw3ka28:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ekjOiLZU5kY:QlbATw3ka28:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ekjOiLZU5kY:QlbATw3ka28:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=ekjOiLZU5kY:QlbATw3ka28:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/ekjOiLZU5kY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/05/database-internal-version-create-version-and-current-version/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/05/database-internal-version-create-version-and-current-version/</feedburner:origLink></item>
		<item>
		<title>T-SQL Tuesday #005 : Who put my database offline?</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/9t3U8OpLkMY/</link>
		<comments>http://SankarReddy.com/2010/04/t-sql-tuesday-005-who-put-my-database-offline/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 16:30:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[TSQLTuesday]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=337</guid>
		<description><![CDATA[<p>This post is participating in T-SQL Tuesday #005 hosted by Aaron Nelson (@sqlvariant). This is an exciting recurring blog post party invented by Adam Machanic (@adammachanic) few months ago, which gives good exposure to budding blog writers and happy to participate.</p>
<p>Problem</p>
<p>Although I don&#8217;t remember who asked this question in the forums but the user was surprised <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/04/t-sql-tuesday-005-who-put-my-database-offline/">T-SQL Tuesday #005 : Who put my database offline?</a></span>]]></description>
			<content:encoded><![CDATA[<p>This post is participating in <a href="http://sqlvariant.com/wordpress/index.php/2010/04/t-sql-tuesday-005-reporting/">T-SQL Tuesday #005</a> hosted by <a href="http://sqlvariant.com/wordpress/index.php/about/">Aaron Nelson</a> (<a href="http://twitter.com/SQLvariant">@sqlvariant</a>). This is an exciting recurring blog post party invented by <a href="http://sqlblog.com/blogs/adam_machanic/default.aspx">Adam Machanic</a> (<a href="http://twitter.com/adammachanic">@adammachanic</a>) few months ago, which gives good exposure to budding blog writers and happy to participate.</p>
<p><strong>Problem</strong></p>
<p>Although I don&#8217;t remember who asked this question in the forums but the user was surprised &#038; puzzled to see their database was set to offline. User wanted to know who did this and they didn&#8217;t have any kind of special monitoring and are using SQL Server 2005.</p>
<p><strong>fn_dblog is an option?</strong> </p>
<p>fn_dblog is an undocumented function that helps to look at the low level actions performed in the transaction log and it is quite useful to do diagnostic adhoc auditing. But don&#8217;t use fn_dblog as the main auditing tool and it is not meant for that purpose. Lets see if this function helps us find out who put the database offline.</p>
<p>Lets create a test database, use the fn_dblog function to look at the contents of the transaction log, set the database status as offline.</p>
<pre class = "brush : sql;">
use master
create database offlineDB
go
use offlineDB
select [Begin Time], [End Time], [Transaction Name], [Operation], [Description], * from fn_dblog (null, null)
go
use master
go
alter database offlineDB set offline
go
</pre>
<p>Now, lets try to look at the transaction log and see if setting the status of the database offline action is captured.</p>
<pre class = "brush : sql;">
use offlineDB
go
select [Begin Time], [Transaction Name], [Operation], [Description], * from fn_dblog(null, null)
go
</pre>
<p>Msg 942, Level 14, State 4, Line 1<br />
Database &#8216;offlineDB&#8217; cannot be opened because it is offline.</p>
<p>That&#8217;s right and it won&#8217;t work as the database has to be available to look at the transaction log and in this case the database is still offline. Now, lets set the database to online and check again.</p>
<pre class = "brush : sql;">
use master
go
alter database offlineDB set online
go
use offlineDB
go
select [Begin Time], [Transaction Name], [Operation], [Description], * from fn_dblog(null, null)
go
</pre>
<p><img src="http://SankarReddy.com/wp-content/uploads/2010/04/DBOffline.jpg" alt="results of fn_dblog when db is set onine" width="900" height="285" /></p>
<p>Here is what we get when the database comes online. A CHECKPOINT was issued and the fn_dblog shows *ONLY* the active portion of the transaction log and in this case we see only the CHECKPOINT. That concludes that fn_dblog is NOT an option to find out who put the database offline.</p>
<p><strong>DEFAULT TRACE is an option?</strong></p>
<p>Starting from SQL Server 2005, a light weight default trace was added to do monitoring of the activities on the server and the activities tracked are listed below.</p>
</pre>
<p><img src="http://SankarReddy.com/wp-content/uploads/2010/04/DefaultTrace.jpg" alt="activities tracked in default trace" width="500" height="725" /></p>
<p>At first glance, nothing really stands out that helps us to find who set the database offline. But on closer look there seems to be a possibility. From the above it could be possible that '<a href="http://msdn.microsoft.com/en-us/library/ms191489(v=SQL.100).aspx">Object:Altered Event Class</a>', which indicates an object being altered, might help us. But does is database considered an object? You BET! Look at <a href="http://msdn.microsoft.com/en-us/library/ms180953(v=SQL.100).aspx">ObjectType Trace Event Column</a> to figure out the different types of objects covered in SQL Trace.</p>
<p><img src="http://SankarReddy.com/wp-content/uploads/2010/04/DefaultTraceEventClass.jpg" alt="columns tracked for Object:Altered event" width="900" height="725" /></p>
<pre class = "brush : sql;">
--Credit goes to Jonathan Kehayias for this query
DECLARE @filename VARCHAR (255)
SELECT @FileName = SUBSTRING (path, 0, LEN(path)-CHARINDEX('\', REVERSE(path))+1) + '\Log.trc'
FROM sys.traces
WHERE is_default = 1;  

--Check if you have any Execution Warnings
SELECT gt.HostName,
       gt.ApplicationName,
       gt.NTUserName,
       gt.NTDomainName,
       gt.LoginName,
       gt.SPID,
       gt.EventClass,
       gt.IntegerData,
       te.Name AS EventName,
       gt.EventSubClass,
       gt.TEXTData,
       gt.StartTime,
       gt.EndTime,
       gt.ObjectName,
       gt.DatabaseName,
       gt.FileName,
  gt.IsSystem
FROM [fn_trace_gettable](@filename, DEFAULT) gt
JOIN sys.trace_events te ON gt.EventClass = te.trace_event_id
WHERE te.name = 'Object:Altered' and gt.ObjectType = 16964 --Database ObjectType
ORDER BY StartTime;
</pre>
<p>One big disclaimer. Note that the above event captures not only if someone puts the database offline, it also covers any meta-data changes to the database itself like changing the owner, setting databse in read only etc...But it shouldn't be difficult to find out who is playing with the database object.</p>
<p>This is just a tip of the iceberg on how default trace can be used to monitor activities on the server, look for performance problems, look for security related activities etc and report back this information with out setting up any special monitoring. Look out for Jonathan's blog later this year where he will publish a detail white paper on this topic.</p>
<p>Unfortunately, I couldn't help the OP because the OP thought default trace was expensive and turned it off. That's not entirely true and Linchi Shea did some testing to benchmark the performance hit and it was between 1-2% cpu hit which is very very low. I strongly advise to turn ON default trace if you haven't already as it can reap rich benefits from it.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F&amp;title=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F&amp;title=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F&amp;title=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F&amp;headline=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F&amp;title=T-SQL+Tuesday+%23005+%3A+Who+put+my+database+offline%3F&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Ft-sql-tuesday-005-who-put-my-database-offline%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=9t3U8OpLkMY:aOKfKGiR5YI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=9t3U8OpLkMY:aOKfKGiR5YI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=9t3U8OpLkMY:aOKfKGiR5YI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=9t3U8OpLkMY:aOKfKGiR5YI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=9t3U8OpLkMY:aOKfKGiR5YI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=9t3U8OpLkMY:aOKfKGiR5YI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=9t3U8OpLkMY:aOKfKGiR5YI:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/9t3U8OpLkMY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/04/t-sql-tuesday-005-who-put-my-database-offline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/04/t-sql-tuesday-005-who-put-my-database-offline/</feedburner:origLink></item>
		<item>
		<title>SQL Saturday #44 is coming to California</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/_y7jNVrS4N8/</link>
		<comments>http://SankarReddy.com/2010/04/sql-saturday-is-coming-to-california/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 16:55:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=369</guid>
		<description><![CDATA[<p>I have been very envious of my SQL friends on the other coast where there is so much activity happening with SQL Saturdays. In an impulse I almost tried to buy airline tickets to attend SQL Saturday#33 but the itinerary didn&#8217;t worked out for that weekend as the arrival time was around 10:30 am in Charlotte. <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/04/sql-saturday-is-coming-to-california/">SQL Saturday #44 is coming to California</a></span>]]></description>
			<content:encoded><![CDATA[<p>I have been very envious of my SQL friends on the other coast where there is so much activity happening with SQL Saturdays. In an impulse I almost tried to buy airline tickets to attend <a href="http://sqlsaturday.com/33/eventhome.aspx">SQL Saturday#33</a> but the itinerary didn&#8217;t worked out for that weekend as the arrival time was around 10:30 am in Charlotte. Now, the wait is over and finally SQL Saturday is coming to California on April 24th 2010. This will be my first SQL Saturday and my first ever training event if you don&#8217;t count the user group meetings.</p>
<p><strong>Welcome to SQLSaturday #44</strong></p>
<div id="attachment_373" class="wp-caption aligncenter" style="width: 246px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://www.sqlsaturday.com/44/eventhome.aspx"><img src="http://SankarReddy.com/wp-content/uploads/2010/04/sqlsaturday.jpg" alt="SQL Saturday is coming to California" title="sqlsat44_transparent" width="236" height="94" class="size-full wp-image-373" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">SQL Saturday is coming to California</p></div>
<p><em>SQLSaturday is a training event for SQL Server professionals and those wanting to learn about SQL Server. This event will be held Apr 24 2010 at Golden West College, 15744 Goldenwest St, Huntington Beach, CA 92647-3197. Admittance to this event is free, but we do charge a lunch fee of 10.00 so that we can provide a lunch &#8211; not pizza! Please register soon as seating is limited, and let friends and colleagues know about the event.<br />
</em><br />
If you haven&#8217;t registered already then I would strongly recommend to do so if you are around Los Angeles during that time. Attending or getting approval for a paid conference is so difficult in this economy and the local SQL Saturday events are done for free with a nominal charge of $10.00 for lunch. Some excellent sessions and best speakers in the community are scheduled for this event and have already decided the sessions I will be attending. I will be driving down to LA and if someone wants a ride from Bay Area to attend this session, I will be very happy to help. There is still time if you are looking to present a session and send an email to sqlsaturday44@sqlsaturday.com if you have a topic in mind.</p>
<p><a href="http://www.sqlsaturday.com/viewsession.aspx?sat=44&#038;sessionid=1460"><strong>Can I really consolidate my SQL Server database</strong></a> by Denny Cherry</p>
<p>In this session we will look at the available techniques for consolidating a SQL Server database, and when to use each technique to help reduce capital expenses. Most importantly we will talk about how to decide when not to consolidate your databases.</p>
<p><a href="http://www.sqlsaturday.com/viewsession.aspx?sat=44&#038;sessionid=1651"><strong>Fixing performance problems &#8211; Stuff happens</strong></a> by Chris Dickey</p>
<p>I will discuss tricky tuning issues that I have encountered during my years speeding up SQL Server. Simple rules often don&#8217;t apply to complex problems. SQL Server queries can have a wide variety of complexities. Slow queries are caused by these issues: 1. data might be retrieved from disk or RAM 2. row estimates are too high or too low 3. functions are zero costed 4. the optimizer doesn&#8217;t know the value of a local variable 5. a query is too complex for the optimizer to do a great job 6. indexes compete for RAM 7. optional parameters 8. a high cost query only using 1 cpu 9. table variables 10. the optimizer isn&#8217;t perfect </p>
<p><a href="http://www.sqlsaturday.com/viewsession.aspx?sat=44&#038;sessionid=1459"><strong>Is Virtualization is a good choice for SQL Server?</strong></a> by Denny Cherry</p>
<p>We’ll be looking into the pros and cons of moving SQL Servers into a virtual server environment. Specifically we’ll be looking into when it’s a good idea and when it’s probably not a good idea. Like all problems in the database world there are no hard set answers as to if virtualization is a good idea, but there are some times when virtualizing a SQL Server is a good idea, and can save you some money. There are some other times when you will be shooting yourself in the foot and shouldn’t. We’ll be focusing on when how to make this decision, and how to gather the metrics that you need in order to come to this decision.</p>
<p><a href="http://www.sqlsaturday.com/viewsession.aspx?sat=44&#038;sessionid=1567"><strong>Solving Slowly Changing Dimension Problem /w SSIS</strong></a> by Shen Liu</p>
<p>Slowly Changing Dimension or SCD is a common problem to data warehousing. This session will provide an overview of SCD problem and present several solutions to this particular problem implemented with Microsoft SQL Server Integration Services</p>
<p><a href="http://www.sqlsaturday.com/viewsession.aspx?sat=44&#038;sessionid=1509"><strong>Accelerating SQL with Solid State Technology</strong></a> by Sumeet Bansal</p>
<p>Solid-state technologies are changing the way that MS SQL users run their databases. DBA’s are achieving significant TCO savings through performance enhancements, reliability improvements, and reduced energy and real estate costs using solid-state technologies. Solid state is changing the way datacenters look and how MS SQL Servers perform. This session will address: 1) On overview of solid state technology options for SQL Server 2) Why solid state makes a difference? 3) An comparison of the different types of NAND Flash-based products and the advantages and disadvantages of each: a. Disk-based SSDs b. Onboard/Embedded PCI Express devices c. Host-based PCI Express devices 4) Customer proof: Wine.com case study </p>
<p><a href="http://www.sqlsaturday.com/viewsession.aspx?sat=44&#038;sessionid=1590"><strong>How the Query Optimizer Works</strong></a> by Benjamin Nevarez</p>
<p>The Query Optimizer is the component of SQL Server that attempts to determine the best way to execute a query by finding an efficient execution plan. This session will show you how a better understanding on how the Query Optimizer works can help you to improve the performance of your databases. See how you can provide SQL Server with appropriate statistics and indexes so it can perform better cardinality estimation and produce an efficient execution plan. Learn how you can troubleshoot problems if you are not getting an efficient execution plan and how you can use other alternatives like hints or plan guides to help the query optimizer to produce a better plan.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F&amp;title=SQL+Saturday+%2344+is+coming+to+California" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F&amp;title=SQL+Saturday+%2344+is+coming+to+California" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F&amp;title=SQL+Saturday+%2344+is+coming+to+California" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F&amp;headline=SQL+Saturday+%2344+is+coming+to+California" ><img class="lightsocial_img" src="http://SankarReddy.com/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+Saturday+%2344+is+coming+to+California&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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+Saturday+%2344+is+coming+to+California&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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+Saturday+%2344+is+coming+to+California&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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+Saturday+%2344+is+coming+to+California&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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+Saturday+%2344+is+coming+to+California&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F&amp;title=SQL+Saturday+%2344+is+coming+to+California&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fsql-saturday-is-coming-to-california%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=_y7jNVrS4N8:MNcemS1BJ-0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=_y7jNVrS4N8:MNcemS1BJ-0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=_y7jNVrS4N8:MNcemS1BJ-0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=_y7jNVrS4N8:MNcemS1BJ-0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=_y7jNVrS4N8:MNcemS1BJ-0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=_y7jNVrS4N8:MNcemS1BJ-0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=_y7jNVrS4N8:MNcemS1BJ-0:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/_y7jNVrS4N8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/04/sql-saturday-is-coming-to-california/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/04/sql-saturday-is-coming-to-california/</feedburner:origLink></item>
		<item>
		<title>Stored SSIS packages disappeared after SP3 migration</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/w_ww0tjOF7E/</link>
		<comments>http://SankarReddy.com/2010/04/stored-ssis-packages-disappeared-after-sp3-migration/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 14:30:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=309</guid>
		<description><![CDATA[<p>Upgrading SQL Server(s) from older version to newer version or even service pack upgrades are always risky. In fact changing any thing in production is always risky and each and every change should go thru a thorough change control process. Careful planning, preparation, execution and thorough validation are very important for any successful implementation. And these <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/04/stored-ssis-packages-disappeared-after-sp3-migration/">Stored SSIS packages disappeared after SP3 migration</a></span>]]></description>
			<content:encoded><![CDATA[<p>Upgrading SQL Server(s) from older version to newer version or even service pack upgrades are always risky. In fact changing any thing in production is always risky and each and every change should go thru a thorough change control process. Careful planning, preparation, execution and thorough validation are very important for any successful implementation. And these steps outlined above have a cost attached to them and its one of the reason Management always shy away from making decisions to upgrade unless you are forced to do so. Coming from a small shop with a lean crew and tight timelines and budget we were kind of delaying our upgrades for few years and stuck with the early builds of SP2 in our enterprise. Recently, we been hit by few nasty bugs and decided its time to upgrade to SP3 + CU8. We rolled out the upgrades to few servers already and in one of the servers we noticed all SQL jobs have failed that were calling an SSIS packages.</p>
<p>The error message looked like below in the job step output history. We were a bit surprised to see The top level folder &#8220;MSDB&#8221; is not found. Not at all helpful to understand the scope or the root cause of the problem. And if we looked at the object explorer for Integration Services, the File System and MSDB folders were empty much to our surprise. All of our SSIS packages were just gone.<br />
<em><br />
<span style="color: #0000ff;"> Executed as user: Microsoft (R) SQL Server Execute Package Utility  Version 9.00.4035.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.  Started:  5:40:00 AM  Could not load package &#8220;\MSDB\Package Name&#8221; because of error 0&#215;80131500.  Description: The top level folder &#8220;MSDB&#8221; is not found.  Source: MsDtsSrvr  Started:  7:40:00 AM  Finished: 5:40:00 AM  Elapsed:  0.031 seconds.  The package could not be loaded.  The step failed.<br />
</span> </em><br />
The next troubleshooting step was dig into the error logs to see what&#8217;s really happening and if there are any helpful messages and we found an interesting message &#8220;<em><span style="color: #800000;"><strong>Microsoft SSIS Service configuration file is missing. Loading with default settings</strong></span></em>&#8220;. Now that is a key piece of information and quick look up pointed me to Configuring the Integration Services Service which clearly outlined that Integration Services dependent on the file  MsDtsSrvr.ini.xml in the location C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn. That file is not there in that location and we think it has something to do with the upgrade.</p>
<p>The contents of the file looked something like below and felt that a copy of this file could be grabbed from another server and change the configurations to point to this server. Seemed like a benign change  and <a href="http://www.ssistalk.com/">Phil Brammer</a> (<a href="http://twitter.com/PhilBrammer">@PhilBrammer</a>) also confirmed this. Within a few minutes, changes were deployed and it needed a SSIS service re-start to correctly show the packages and things were back to normal once again.</p>
<pre class="brush: xml; ">
<?xml version="1.0" encoding="utf-8"?>
<DtsServiceConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <StopExecutingPackagesOnShutdown>true</StopExecutingPackagesOnShutdown>
  <TopLevelFolders>
    <Folder xsi:type="SqlServerFolder">
      <Name>MSDB</Name>
      <ServerName>ServerName\InstanceName</ServerName>
    </Folder>
    <Folder xsi:type="FileSystemFolder">
      <Name>File System</Name>
      <StorePath>..\Packages</StorePath>
    </Folder>
  </TopLevelFolders>
</DtsServiceConfiguration>
</pre>
<p>Apart from this small hiccup, we think our upgrades are going great and the next batch of servers will be as smooth as possible and hopefully our servers will stay stable for a while.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F&amp;title=Stored+SSIS+packages+disappeared+after+SP3+migration" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F&amp;title=Stored+SSIS+packages+disappeared+after+SP3+migration" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F&amp;title=Stored+SSIS+packages+disappeared+after+SP3+migration" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F&amp;headline=Stored+SSIS+packages+disappeared+after+SP3+migration" ><img class="lightsocial_img" src="http://SankarReddy.com/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+SSIS+packages+disappeared+after+SP3+migration&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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+SSIS+packages+disappeared+after+SP3+migration&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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+SSIS+packages+disappeared+after+SP3+migration&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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+SSIS+packages+disappeared+after+SP3+migration&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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+SSIS+packages+disappeared+after+SP3+migration&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F&amp;title=Stored+SSIS+packages+disappeared+after+SP3+migration&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Fstored-ssis-packages-disappeared-after-sp3-migration%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=w_ww0tjOF7E:x3HeQRpu_PM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=w_ww0tjOF7E:x3HeQRpu_PM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=w_ww0tjOF7E:x3HeQRpu_PM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=w_ww0tjOF7E:x3HeQRpu_PM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=w_ww0tjOF7E:x3HeQRpu_PM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=w_ww0tjOF7E:x3HeQRpu_PM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=w_ww0tjOF7E:x3HeQRpu_PM:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/w_ww0tjOF7E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/04/stored-ssis-packages-disappeared-after-sp3-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/04/stored-ssis-packages-disappeared-after-sp3-migration/</feedburner:origLink></item>
		<item>
		<title>Lessons learned: Recovering from first ‘suspect’ database</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/GGnpxaRWP-I/</link>
		<comments>http://SankarReddy.com/2010/04/lessons-learned-recovering-from-first-suspect-database/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 13:00:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=320</guid>
		<description><![CDATA[<p>Short story:</p>
<p>Corruption happens. Be prepared. Read Paul&#8217;s blog on CHECKDB-From-Every-Angle &#38; Disaster Recovery, watch the excellent knowledge packed Corruption survival techniques video and practice the sample corrupt databases.</p>
<p>Long story:</p>
<p>Corruption happens and it can happen when you least expect it. There is no hiding from this, even if you are remotely responsible for maintaining and supporting a <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/04/lessons-learned-recovering-from-first-suspect-database/">Lessons learned: Recovering from first &#8216;suspect&#8217; database</a></span>]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;">Short story:</span></p>
<p>Corruption happens. Be prepared. Read Paul&#8217;s blog on <a href="http://www.sqlskills.com/BLOGS/PAUL/category/CHECKDB-From-Every-Angle.aspx">CHECKDB-From-Every-Angle</a> &amp; <a href="http://www.sqlskills.com/BLOGS/PAUL/category/Disaster-Recovery.aspx">Disaster Recovery</a>, watch the excellent knowledge packed <a href="http://www.sqlpass.org/LearningCenter/SummitOnDemand/Summit2008/DBA416S.aspx">Corruption survival techniques</a> video and <a href="http://www.sqlskills.com/BLOGS/PAUL/post/Sample-corrupt-databases-to-play-with.aspx">practice the sample corrupt databases</a>.</p>
<p><span style="text-decoration: underline;">Long story:</span></p>
<p>Corruption happens and it can happen when you least expect it. There is no hiding from this, even if you are remotely responsible for maintaining and supporting a server, you should be prepared to deal with this. Some DBA&#8217;s may not face this for few years, may be entire career and while others are NOT so lucky. Unless you are prepared to deal with corruption before corruption happens, you are guaranteed to be on expressway to unemployment. Its not only the job, its your reputation and references on the line. Fortunately SQL Server has the best community thats willing to share, help and guide and only for the ones who dare to ask!</p>
<p>If you are still reading this then here is my story.</p>
<p>I started my current position about 2 1/2 years ago as a database developer in a team of 10. Over the past year, we had some restructuring(s) and by mid Jan this year I became the sole person responsible to maintain and support the enterprise SQL Servers. And this transition didn&#8217;t happen by grooming me over the years, it just happened and here is your access, go manage the servers. To some extent I prepared for this by looking more into the administration side and participating in forums over the past year. Fast forward to mid Feb where I am scrambling to get lots of stuff done. About 200+ quarterly reports are due by monday morning and I am no way near completion on friday and hoped friday night, saturday and sunday will help me get closer to completion by monday morning. Got some decent progress on friday evening and saturday during the day. But on that freaky Saturday night, 2 disks gave up and a memory DIMM failed and crash recovery couldn&#8217;t complete cleanly. Voila, we got a suspect database. Note that this is a Data warehouse server, not an OLTP production server.</p>
<p>I am a regular reader of Paul&#8217;s blog and learnt few things of what not do when corruption happens and what has to be done to get the server back on track. But I never practiced as my role was different at that time and felt no immediate need. With the knowledge I have, figured out the scope of the problem, weighed my options to restore or repair and came up with the steps I need to follow to recover from corruption. From DBCC CHECKDB, we inferred there is corruption in only one table and the data from this table can be rebuilt 100% from other sources. And in our case, based on the circumstances running &#8220;repair_allow_data_loss&#8221; seemed appropriate step. Here is the abridged DBCC CHECKDB output.</p>
<p><span style="color: #ff0000;">.Net SqlClient Data Provider: Msg 8936, Level 16, State 1, Line 2<br />
Table error: Object ID 678930882, index ID 1, partition ID 72057595414315008, alloc unit ID 72057595461500928 (type In-row data). B-tree chain linkage mismatch. (14:1415116)-&gt;next = (14:1413599), but (14:1413599)-&gt;Prev = (14:1415505).<br />
.Net SqlClient Data Provider: Msg 2533, Level 16, State 1, Line 2<br />
Table error: page (14:1415134) allocated to object ID 678930882, index ID 1, partition ID 72057595414315008, alloc unit ID 72057595461500928 (type In-row data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.<br />
.Net SqlClient Data Provider: Msg 8976, Level 16, State 1, Line 2<br />
Table error: Object ID 678930882, index ID 1, partition ID 72057595414315008, alloc unit ID 72057595461500928 (type In-row data). Page (14:1415134) was not seen in the scan although its parent (14:1414070) and previous (14:1415115) refer to it. Check any previous errors.</span></p>
<p><span style="color: #ff0000;">CHECKDB found 0 allocation errors and 75 consistency errors in table &#8216;SomeTableName&#8217; (object ID 678930882).<br />
CHECKDB found 0 allocation errors and 75 consistency errors in database &#8216;SomeDBName&#8217;.<br />
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (SomeDBName).</span></p>
<p>On that sunday, <a href="http://blogs.lessthandot.com/index.php/All/?disp=authdir&#038;author=68">Ted Kruger</a> (<a href="http://twitter.com/onpnt">@onpnt</a>) was dealing with a suspect database himself and we connected on Twitter. I asked Ted if he is willing to look at my steps and give feedback. I also sent an email to <a href="http://www.sqlskills.com/BLOGS/PAUL/">Paul Randal</a> (<a href="http://twitter.com/PaulRandal">@PaulRandal</a>) to look at the scope of the problem and requested feedback on the troubleshooting steps I outlined. Within minutes I am in a parallel conversation with both Paul &amp; Ted and gave feedback that I am on the right track. Here are my steps to recover from suspect database.</p>
<p>1) Take backup of the database.<br />
2) Put the database in single user mode<br />
3) Run CHECKDB with allow data loss<br />
4) Figure out and add the data to this table<br />
5) Run CHECKDB again to make sure its clean.<br />
6) Put the db back into multi_user mode</p>
<p>Although the plan was good, things didn&#8217;t go as I expected first. Since we are looking to do repair, it seemed appropriate to take some kind of backup if things went further south. What I didn&#8217;t know is if the database is in emergency mode then full backup isn&#8217;t allowed. And ran into the below message. I wouldn&#8217;t necessarily put it as panic moment but in that moment it crossed my mind to put the database online and take a full backup. Doesn&#8217;t it sound awful, it does now but at that moment it seemed appropriate (clearly showing lack of knowledge). I realized my mistake as soon as I hit F5 but wanted to let it finish by itself. Even after an hour and looking at 0 reads and 0 writes I killed the session but it doesn&#8217;t want to be killed and got stuck, probably doing some kind of Log Recovery.</p>
<p><span style="color: #ff0000;">.Net SqlClient Data Provider: Msg 3033, Level 16, State 0, Line 1<br />
BACKUP DATABASE cannot be used on a database opened in emergency mode.<br />
.Net SqlClient Data Provider: Msg 3013, Level 16, State 1, Line 1<br />
BACKUP DATABASE is terminating abnormally.</span></p>
<p>We had to wait for the session to completely rollback and waited few hours and waited some more and waited some more. After 48 hours and in consultation with Paul again we bounced the server. Once the db came back as suspect again, verified the level of corruption to be the same as earlier, skipped #1, moved on with next steps and the db was back online in few hours and we recovered all of the data with 0 data loss. Although I am being hailed as the one to take care of business at work I know I failed miserably. Even though there was no data loss but the reporting server was down for almost 2.5 days and our reports were late and we have to pull in favors. A very big thanks to both Paul Randal and Ted Kruger for helping me get thru this issue. If I have to rate this, I will give a A+ for SQL Server community (especially Paul &amp; Ted in this situation) and C- for myself for poor execution.</p>
<p>It was a big wake up call and exposed how vulnerable we are. Had this issue happened to the production OLTP server, I could have earned my express ticket for unemployment. If the issue happened again, I am better prepared now to deal with this and currently spending significant time on learning more about database corruption and practicing how to deal with different types of corruption. I said at the beginning of the post and will repeat once again to the readers. If you are remotely responsible for maintaining a SQL Server then read Paul&#8217;s blog on <a href="http://www.sqlskills.com/BLOGS/PAUL/category/CHECKDB-From-Every-Angle.aspx">CHECKDB-From-Every-Angle</a> &amp; <a href="http://www.sqlskills.com/BLOGS/PAUL/category/Disaster-Recovery.aspx">Disaster Recovery</a>, watch the excellent knowledge packed <a href="http://www.sqlpass.org/LearningCenter/SummitOnDemand/Summit2008/DBA416S.aspx">Corruption survival techniques</a> video and <a href="http://www.sqlskills.com/BLOGS/PAUL/post/Sample-corrupt-databases-to-play-with.aspx">practice the sample corrupt databases</a> and be prepared before corruption strikes.</p>
<p>Coming out of this, I have setup geo redundancy (thanks Pete, our Architect) and also setup a daily recurring job that automatically copies the production backup to test restores everyday for our production server. And a playbook to deal with issues like this is work in progress. If you are still reading this, now ask yourself, are you prepared to deal with corruption if corruption happens at this moment on your production server? </p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F&amp;title=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F&amp;title=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F&amp;title=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F&amp;headline=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F&amp;title=Lessons+learned%3A+Recovering+from+first+%27suspect%27+database&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F04%2Flessons-learned-recovering-from-first-suspect-database%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=GGnpxaRWP-I:gBwNoazho8g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=GGnpxaRWP-I:gBwNoazho8g:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=GGnpxaRWP-I:gBwNoazho8g:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=GGnpxaRWP-I:gBwNoazho8g:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=GGnpxaRWP-I:gBwNoazho8g:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=GGnpxaRWP-I:gBwNoazho8g:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=GGnpxaRWP-I:gBwNoazho8g:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/GGnpxaRWP-I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/04/lessons-learned-recovering-from-first-suspect-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/04/lessons-learned-recovering-from-first-suspect-database/</feedburner:origLink></item>
		<item>
		<title>Elegant Solution: Finding last clean DBCC CHECKDB ran date quickly for all databases</title>
		<link>http://feedproxy.google.com/~r/SankarReddySqlServer/~3/ocx4zMVE9Rc/</link>
		<comments>http://SankarReddy.com/2010/03/elegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 08:18:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>

		<guid isPermaLink="false">http://SankarReddy.com/?p=290</guid>
		<description><![CDATA[<p>As a dba, its important to know that the databases being monitored under our supervision are free from corruption and the below code helps in identifying the last ran clean DBCC CHECKDB date. This technique works only for SQL Server 2005 and above.</p>
USE tempdb
GO
CREATE TABLE dbo.DBCCData
	(
	Id INT IDENTITY (1,1)
	, ParentObject VARCHAR (255)
	, [Object] VARCHAR (255)
	, Field <span style="color:#777"> . . . &#8594; Read More: <a href="http://SankarReddy.com/2010/03/elegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2/">Elegant Solution: Finding last clean DBCC CHECKDB ran date quickly for all databases</a></span>]]></description>
			<content:encoded><![CDATA[<p>As a dba, its important to know that the databases being monitored under our supervision are free from corruption and the below code helps in identifying the last ran clean DBCC CHECKDB date. This technique works only for SQL Server 2005 and above.</p>
<pre class="brush: sql; ">USE tempdb
GO
CREATE TABLE dbo.DBCCData
	(
	Id INT IDENTITY (1,1)
	, ParentObject VARCHAR (255)
	, [Object] VARCHAR (255)
	, Field VARCHAR (255)
	, [Value] VARCHAR (255)
	)

INSERT INTO dbo.DBCCData
EXECUTE SP_MSFOREACHDB'DBCC DBINFO ( ''?'') WITH TABLERESULTS';

WITH CHECKDB1 AS
(
    SELECT [Value],ROW_NUMBER() OVER (ORDER BY ID) AS rn1 FROM dbo.DBCCData WHERE Field IN ('dbi_dbname'))
    ,CHECKDB2 AS ( SELECT [Value], ROW_NUMBER() OVER (ORDER BY ID) AS rn2 FROM dbo.DBCCData WHERE Field IN ('dbi_dbccLastKnownGood')
)
SELECT CHECKDB1.Value AS DatabaseName
        , CHECKDB2.Value AS LastRanDBCCCHECKDB
FROM CHECKDB1 JOIN CHECKDB2
ON rn1 = rn2

DROP TABLE dbo.DBCCData</pre>
<p>PS: This post is migrated from my <a href="http://sankarreddy.spaces.live.com/blog/cns!1F1B61765691B5CD!383.entry">old blog</a> to here on 03/24/2010<br />
Acknowledgements: Aaron Alton, Ward Pond, Paul Randal, Jonathan Kehayias</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F&amp;title=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F&amp;title=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F&amp;title=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F&amp;headline=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases&amp;u=http%3A%2F%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases&amp;url=http%3A%2F%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F&amp;title=Elegant+Solution%3A+Finding+last+clean+DBCC+CHECKDB+ran+date+quickly+for+all+databases&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/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%2FSankarReddy.com%2F2010%2F03%2Felegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2%2F" ><img class="lightsocial_img" src="http://SankarReddy.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ocx4zMVE9Rc:QE6YRLjSow0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ocx4zMVE9Rc:QE6YRLjSow0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=ocx4zMVE9Rc:QE6YRLjSow0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ocx4zMVE9Rc:QE6YRLjSow0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ocx4zMVE9Rc:QE6YRLjSow0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/SankarReddySqlServer?a=ocx4zMVE9Rc:QE6YRLjSow0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/SankarReddySqlServer?i=ocx4zMVE9Rc:QE6YRLjSow0:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/SankarReddySqlServer/~4/ocx4zMVE9Rc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://SankarReddy.com/2010/03/elegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://SankarReddy.com/2010/03/elegant-solution-finding-last-clean-dbcc-checkdb-ran-date-quickly-for-all-databases-2/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.684 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-08-18 03:07:43 -->
