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

<channel>
	<title>SQLRockstar &#124; Thomas LaRock &#187; SQL MVP</title>
	<atom:link href="http://thomaslarock.com/category/sql-mvp/feed/" rel="self" type="application/rss+xml" />
	<link>http://thomaslarock.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 18:30:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Stop Guessing About CPU Pressure</title>
		<link>http://thomaslarock.com/2012/01/stop-guessing-about-cpu-pressure/</link>
		<comments>http://thomaslarock.com/2012/01/stop-guessing-about-cpu-pressure/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 19:21:44 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[evangelism]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=7538</guid>
		<description><![CDATA[Ever try to troubleshoot something that doesn&#8217;t really exist?
I think this virtualization thing is here to stay, I really do, but the trouble I see people having with virtualization is that they don&#8217;t know where the bottleneck truly lies. There are so many layers involved that most standard troubleshooting techniques fall short. Just think for [...]<p><p></p>
<a href="http://thomaslarock.com/2012/01/stop-guessing-about-cpu-pressure/">Stop Guessing About CPU Pressure</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div id="attachment_7543" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-7543" title="cpu" src="http://thomaslarock.com/wp-content/uploads/2012/01/cpu-300x224.jpg?9d7bd4" alt="" width="300" height="224" /><p class="wp-caption-text">This tiny guy runs everything you do!</p></div>
<p>Ever try to troubleshoot something that doesn&#8217;t really exist?</p>
<p>I think this virtualization thing is here to stay, I really do, but the trouble I see people having with virtualization is that they don&#8217;t know where the bottleneck truly lies. There are so many layers involved that most standard troubleshooting techniques fall short. Just think for a minute about being a SQL Server DBA in a virtual world: you administer a piece of software, running on a guest O/S, that is running on a host, that is connected to a datastore that may or may not be shared with &#8220;noisy neighbors&#8221;.</p>
<p>Knowing all that, when an end-user comes to you and says &#8220;this query is running slow&#8221;, where do you begin to look?</p>
<p>I always start with the virtual layers. I&#8217;d rather spend 5 minutes ruling out the virtual layer as a bottleneck before I try to tune a query. It makes no sense to spend time trying to make a query run faster if the bottleneck is at the host level, for example. That&#8217;s wasted time, and I *hate* wasting time.</p>
<p>One example I see often these days has to do with CPU pressure. In my experience most database servers are not CPU bound. (I said &#8220;most&#8221; and &#8220;my experience&#8221;.) Usually a database server has a lot of extra CPU cycles to spare. But that is not always the case in the virtual world. So when I come across a database instance that is showing CPU pressure I like to ask a very general question: Is it internal pressure, or external?</p>
<p>One of my favorite metrics to examine when researching potential CPU pressure is called <strong>signal waits</strong>. You can read more about signal waits at this <a href="http://blogs.msdn.com/b/sqlcat/archive/2005/09/05/461199.aspx">blog post by a member of the SQLCAT team</a>. The default threshold I like to set is 25%, meaning once I see I have about 25% of my sessions simply waiting for an available CPU I am likely to believe that the CPU pressure is internal to the instance. Of course more factors come into play before I would define 25% to be a problem, such as volume of sessions, length of time for each session to execute, etc.</p>
<p>But what about a guest O/S that is also waiting for an available CPU from the host? Imagine that your sessions are waiting for the SQLOS to give you an available CPU, and the SQLOS itself is waiting for an available CPU from the host? Wouldn&#8217;t it be nice if there was a metric for you to know if the issue is at the guest layer, and not internal to SQL?</p>
<p>Well as luck would have it <a href="http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/cpu_counters.html" target="_blank">such a metric does exist</a>: <strong>CPU ready time</strong>. This is simply a metric that tells you the percentage of time that your guest was ready to run, but could not get scheduled.</p>
<p>Together the signal waits and CPU ready time help to give you a more complete picture of what is happening to your database instance. Unfortunately, you can&#8217;t get at all of this information easily from within vSphere. Here&#8217;s a quick overview of what you would need to do in vSphere to research CPU pressure:</p>
<ol>
<li>Open vSphere, then go to the correct host, then to the guest that you are interested in monitoring.</li>
<li>On the Performance tab add in the counters you want (but no more than two!)</li>
<li>See real-time information (too bad if your issue was last week and you don&#8217;t have details any longer)</li>
<li>Ascertain if the issue is local to guest by going back to the host and looking at Performance tab</li>
<li>Add in the counters for the host Performance tab view (but no more than two!)</li>
<li>See real-time information (too bad if the issue was last week and you don&#8217;t have details any longer)</li>
<li>Throw up your hands when you realize that you still don&#8217;t know if the pressure is internal or external to SQL running on that guest, on that host</li>
<li>Take your hands and slap yourself when you realize you can&#8217;t tie anything back to specific SQL statements</li>
</ol>
<p>Sounds rather time consuming, right? Especially if you still won&#8217;t have any idea about a root cause or what specific actions to take after spending all that time investigating the issue. If you want to see it for yourself I made a video to show you some of the challenges that vSphere has when it comes to displaying all of the metrics necessary for you to make an informed decision.</p>
<p><p class='post-video'><iframe title="YouTube video player" width="" height="600" src="http://www.youtube.com/embed/fXf18WrQteY" frameborder="0" allowfullscreen></iframe><div id="tentblogger-vimeo-youtube-message" style="width: 100%; border: 1px solid #e6e6e6; background: #f8f8f4; text-align:center; padding: 0.25em; ">Can't see the video in your RSS reader or email? <a target="_blank" href="http://thomaslarock.com/2012/01/stop-guessing-about-cpu-pressure/">Click Here!</a></div></p>
<p>The short of it is that vSphere is never going to give you a complete view (including SQL statements or even number of sessions running) in one screen. But <a href="http://www.confio.com/English/Products/Ignite_VM.php" target="_blank">IgniteVM</a> will do that for you, saving you time, and ultimately money as well, money that can then be used to buy more <a href="http://www.nueskes.com/" target="_blank">bacon</a> <a href="http://baconery.com/" target="_blank">related</a> <a href="http://www.thinkgeek.com/brain/whereisit.cgi?t=bacon&amp;x=7&amp;y=15">products</a> for your home or office (don&#8217;t forget <a href="http://baconlube.com/" target="_blank">Valentine&#8217;s Day</a> is right around the corner).</p>
<p>Not only is virtualization here to stay, but tools like IgniteVM will be here as well to help administrators quickly find the root cause for performance bottlenecks.</p>
<p>Want to chat more about monitoring your virtual database servers? Then <a href="http://thomaslarock.com/contact-me/">contact me</a> and I would be happy to set up some time to talk. Also, <a href="http://www.confio.com" target="_blank">Confio</a> has regular product demos: <a href="https://cc.readytalk.com/cc/s/showReg?udc=9kbm2zx15p5u" target="_blank">go register for the next one here</a>.</p>
<p><p></p>
<a href="http://thomaslarock.com/2012/01/stop-guessing-about-cpu-pressure/">Stop Guessing About CPU Pressure</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-7538"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fstop-guessing-about-cpu-pressure%2F' data-shr_title='Stop+Guessing+About+CPU+Pressure'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fstop-guessing-about-cpu-pressure%2F' data-shr_title='Stop+Guessing+About+CPU+Pressure'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2012/01/stop-guessing-about-cpu-pressure/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQL 2012 Database Engine Tuning Advisor: Now With More Plan Cache!</title>
		<link>http://thomaslarock.com/2012/01/sql-2012-database-engine-tuning-advisor-now-with-more-plan-cache/</link>
		<comments>http://thomaslarock.com/2012/01/sql-2012-database-engine-tuning-advisor-now-with-more-plan-cache/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 19:55:44 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[SQLServerPedia Wiki]]></category>
		<category><![CDATA[advisor]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=7475</guid>
		<description><![CDATA[I&#8217;m normally not one to advocate the use of the Database Engine Tuning Advisor (DETA), a tool available inside of Microsoft SQL Server. (To be fair, I&#8217;m not a fan of the SQL Tuning Advisor from Oracle, either.) But I recently came across a little nugget of information that I wanted to share with you regarding [...]<p><p></p>
<a href="http://thomaslarock.com/2012/01/sql-2012-database-engine-tuning-advisor-now-with-more-plan-cache/">SQL 2012 Database Engine Tuning Advisor: Now With More Plan Cache!</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I&#8217;m normally not one to advocate the use of the Database Engine Tuning Advisor (DETA), a tool available inside of Microsoft SQL Server. (To be fair, I&#8217;m not a fan of the <a href="http://docs.oracle.com/cd/B28359_01/server.111/b28274/sql_tune.htm">SQL Tuning Advisor</a> from Oracle, either.) But I recently came across a little nugget of information that I wanted to share with you regarding an improvement in the <a href="http://msdn.microsoft.com/en-us/library/ms186354(v=sql.110).aspx">DETA for SQL2012</a>. You may not know it from clicking on that link, so I&#8217;ll spell it out for you here:</p>
<p>&#8220;<em>To tune a database by using the plan cache</em>&#8221;</p>
<p>And suddenly I am interested in using the DETA again. This makes things so much easier for me as an end-user. I no longer need to configure the DETA to run at a specific time. I can simply point-and-click and instantly have a handful of recommendations to evaluate.</p>
<p>Of course taking action on the recommendations without doing any analysis is not a recommended course of action. But the idea that I can use the plan cache is something I am eager to try.</p>
<p>Here&#8217;s hoping I won&#8217;t be disappointed&#8230;again.</p>
<p><p></p>
<a href="http://thomaslarock.com/2012/01/sql-2012-database-engine-tuning-advisor-now-with-more-plan-cache/">SQL 2012 Database Engine Tuning Advisor: Now With More Plan Cache!</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-7475"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fsql-2012-database-engine-tuning-advisor-now-with-more-plan-cache%2F' data-shr_title='SQL+2012+Database+Engine+Tuning+Advisor%3A+Now+With+More+Plan+Cache%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fsql-2012-database-engine-tuning-advisor-now-with-more-plan-cache%2F' data-shr_title='SQL+2012+Database+Engine+Tuning+Advisor%3A+Now+With+More+Plan+Cache%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2012/01/sql-2012-database-engine-tuning-advisor-now-with-more-plan-cache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Is Your DBA Lying To You?</title>
		<link>http://thomaslarock.com/2012/01/is-your-dba-lying-to-you/</link>
		<comments>http://thomaslarock.com/2012/01/is-your-dba-lying-to-you/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 17:02:37 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[SQLServerPedia Wiki]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Database administrator]]></category>
		<category><![CDATA[Database management system]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[More Reasons Why Barack and I Were Seperated At Birth]]></category>
		<category><![CDATA[Reasons Why I Will Not Be Invited to the MVP Summit]]></category>
		<category><![CDATA[white lies]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=7431</guid>
		<description><![CDATA[&#8220;Signs point to yes.&#8221; &#8211; Magic 8-Ball prophecy
You have probably heard this line at one point, the one that says &#8220;the best DBAs are the ones you never see or hear?&#8221; I used to think that was a result of some sketchy personal hygiene choices and later on understood it to mean that if everything [...]<p><p></p>
<a href="http://thomaslarock.com/2012/01/is-your-dba-lying-to-you/">Is Your DBA Lying To You?</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div id="attachment_7454" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-7454 " title="Would I lie to you?" src="http://thomaslarock.com/wp-content/uploads/2012/01/lying-300x187.jpg?9d7bd4" alt="Would I lie to you?" width="300" height="187" /><p class="wp-caption-text">Trust me, I&#39;m a DBA</p></div>
<p>&#8220;<em>Signs point to yes</em>.&#8221; &#8211; Magic 8-Ball prophecy</p>
<p>You have probably heard this line at one point, the one that says &#8220;the best DBAs are the ones you never see or hear?&#8221; I used to think that was a result of some sketchy personal hygiene choices and later on understood it to mean that if everything is running smoothly then there isn&#8217;t a need to see your DBA. It&#8217;s kinda like how you never see your plumber. Oh sure, you could call him (or her) and chat, have them over for drinks or dinner one night, but you never bother talking to them until your toilet backs up and there&#8217;s crap everywhere. That&#8217;s how most DBAs are treated as well, we don&#8217;t get called until <em>after</em> the crap is on the floor.</p>
<p>Unlike your plumber most DBAs are performing regular work on your databases. Much of this work will go unnoticed. The reason for that is simple: you&#8217;ll freak out if you knew what we were doing. And if you ask us about something we are likely to tell you half-truths because (1) we don&#8217;t want you to freak out and (2) you never understand us when we talk to you anyway.</p>
<p>Here&#8217;s my list of things that I am willing to bet your DBA hasn&#8217;t always been truthful about.</p>
<h3>1. Your database server is still on physical hardware</h3>
<p>Probably the number one misconception that end users have these days centers around the use of virtualization. People fear change, and when they are told that their servers are about to be virtualized they freak out. And for the handful of users that don&#8217;t freak out immediately their reaction is just delayed until the moment that something goes wrong and then they blame the fact that the server is on virtual hardware. What&#8217;s that? The bank didn&#8217;t send the files last night, so the import never started? It must be due to the fact that we were virtualized, because before then <em>nothing like this ever happened</em>.</p>
<p>Wrong. Bad things happened before you were virtual, too. It&#8217;s just that you don&#8217;t remember. So we don&#8217;t bother telling you about the switch. No, we wait until it leaks out months later, just so we can say things like &#8220;look, it&#8217;s been on a VM for six months and you never once complained about performance, so don&#8217;t try blaming virtualization for your issues now.&#8221;</p>
<h3>2. Everything is fine, nothing to see here</h3>
<p>Chances are everything is not fine. In fact, chances are the data center is on fire and your server melted last night (good thing they were virtualized so we could failover immediately to a different data center without you knowing) but we aren&#8217;t going to say a word to you about it. And why not?</p>
<div class="wp-caption alignleft" style="width: 310px"><a href="http://commons.wikipedia.org/wiki/File:Backup_Backup_Backup_-_And_Test_Restores.jpg" rel="prettyPhoto[7431]"><img class="zemanta-img-inserted zemanta-img-configured" title="Is it getting warm in here?" src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/Backup_Backup_Backup_-_And_Test_Restores.jpg/300px-Backup_Backup_Backup_-_And_Test_Restores.jpg" alt="Is it getting warm in here?" width="300" height="289" /></a><p class="wp-caption-text">Is it getting warm in here?</p></div>
<p>Because the minute most users hear about something having gone wrong they like to blame EVERYTHING on whatever went wrong. Take this example:</p>
<p>Me: &#8220;Hi Craig, just want you to know that last night at 11PM the differential backup failed. We&#8217;re not sure why yet, but we re-ran them at 11:30PM and those worked. So, if you ever need something from Monday night and ask for the 11PM backup and you&#8217;re told that we only have one for 11:30, you don&#8217;t need to panic.&#8221;</p>
<p>Craig: &#8220;The backups failed?&#8221;</p>
<p>Me: &#8220;Yes, but we re-ran them right away, so we have a good one, just from 11:30PM, and not 11PM&#8221;</p>
<p>Craig: &#8220;OK then, that explains why those reports at midnight didn&#8217;t work.&#8221;</p>
<p>Me: &#8220;No, it doesn&#8217;t, the backups have no bearing on those reports. It&#8217;s two different servers. Your report server melted in the fire. That&#8217;s why they didn&#8217;t run. This is a different server, and a different time. There is no relation between the two.&#8221;</p>
<p>Craig: &#8220;But the reports use data from that server. Chances are the data they retrieved caused the fire.&#8221;</p>
<p>Me: &#8220;Is it too early to start drinking? I guess not, because clearly you have already.&#8221;</p>
<p>That&#8217;s why we don&#8217;t tell you anything. It&#8217;s because no matter what happens you will latch onto it and start blaming it for anything else no matter how unrelated or crazy. You&#8217;ll send emails to managers stating &#8220;facts&#8221; that are just not true, creating more chaos and confusion than if we had said nothing at all.</p>
<p>So we don&#8217;t say anything. No matter how big or small of an event.</p>
<h3>3. It&#8217;s the network</h3>
<p>Your DBA is likely the best looking and smartest person in your IT department. But that doesn&#8217;t mean that they are omnipotent. From time to time they are not going to have an immediate answer for you no matter how long you stand in their cube tapping your feet and reminding them how much money is being lost for each passing minute that they haven&#8217;t solved whatever imaginary problem you are having.</p>
<div id="attachment_7462" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-7462 " title="What's the worst that can happen?" src="http://thomaslarock.com/wp-content/uploads/2012/01/theuglynetwork-300x225.jpg?9d7bd4" alt="" width="300" height="225" /><p class="wp-caption-text">You should have seen it BEFORE we consolidated.</p></div>
<p>It&#8217;s during times like these that the most seasoned of DBAs will reach into for the modern-day equivalent of a &#8220;<a href="http://en.wikipedia.org/wiki/Get_Out_of_Jail_Free_card">get out of jail free</a>&#8221; card by turning their heads, looking deep into your eyes and saying those magical words:</p>
<p>&#8220;<em>Looks like it could be a problem with the network</em>.&#8221;</p>
<p>This one line is pure gold. It buys any DBA the time they need to investigate the real problem as most folks will walk out of the cube once they believe the DBA is on the trail and closer to finding a solution. And once those people leave you alone to focus on the issue you are likely to be able to find a solution.</p>
<p>And don&#8217;t worry about blaming the network. The network admins don&#8217;t mind, because they just blame management for not buying the right hardware the first time around. And then management tells the end users they will need to live with the bad performance until the network issues are worked out. It&#8217;s the circle of life in IT, and it works.</p>
<h3>4. Of course your server is dedicated</h3>
<p>Not likely, no it is not. Not only does your database server also run all sorts of other things like anti-virus software and software for taking server tape backups, but chances are it is running other services like SSAS or SSIS. And let&#8217;s not forget all those vendors that insist their application be installed on the same server as the database &#8220;for performance reasons&#8221; which I always found amusing every time we found the performance bottleneck to be the application itself. Good times.</p>
<p>And let&#8217;s not forget the price of all that hardware and software. As much as I enjoy having my overall CPU utilization to be less than ten percent if the guys who write the checks find out that we are wasting ninety percent of our capacity then there is a good chance we won&#8217;t ever be able to buy anything new and then you&#8217;ll have to hear your DBA say things like &#8220;this is why we can&#8217;t have nice things&#8221; each time you ask if your server is dedicated. So, just don&#8217;t bother. Your server is a resource and is likely being used by others. Get used to the idea.</p>
<h3>5. Yes I gave you the permissions you asked for</h3>
<p>Not only do vendors like to insist that their applications are installed on the same server as the database, but they also insist on having full administrative rights. Why are such rights necessary? Quite often, they aren&#8217;t, but vendors ask for it because they can. Any good DBA will ask for a list of actions that are needed so that they can grant the permissions necessary for those actions. I once had a vendor tell me they needed full system administrative rights for the database instance AND the O/S because they &#8220;had to create tables and stuff&#8221;.</p>
<p>DBAs, especially the good ones, know this isn&#8217;t true. And so we give you the permissions that you need. Quite often that is different from the permissions that you asked for. And honestly we&#8217;re too tired to explain to you the difference because you usually don&#8217;t care to understand it anyway.</p>
<p>There you go, five things your DBA has probably been less than truthful with you about. That doesn&#8217;t make us bad people. In fact, it makes us more like an adult&#8230;say a parent&#8230;someone who knows the difference between &#8220;want&#8221; and &#8220;need&#8221; and has to make the hard choices that others don&#8217;t want to make.</p>
<p><p></p>
<a href="http://thomaslarock.com/2012/01/is-your-dba-lying-to-you/">Is Your DBA Lying To You?</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-7431"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fis-your-dba-lying-to-you%2F' data-shr_title='Is+Your+DBA+Lying+To+You%3F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fis-your-dba-lying-to-you%2F' data-shr_title='Is+Your+DBA+Lying+To+You%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2012/01/is-your-dba-lying-to-you/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Presenting at Tech-Ed(s) This Year</title>
		<link>http://thomaslarock.com/2012/01/presenting-at-techeds-this-year/</link>
		<comments>http://thomaslarock.com/2012/01/presenting-at-techeds-this-year/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 17:03:39 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Amsterdam]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[Orlando]]></category>
		<category><![CDATA[precon]]></category>
		<category><![CDATA[teched]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=7409</guid>
		<description><![CDATA[The announcements came out yesterday and I can now tell the world that I will be presenting at TechEd this year. Denny Cherry (blog &#124; @mrdenny) and I will be doing a precon seminar at TechEd in Orlando in June. The title is &#8220;Microsoft SQL Server Performance Tuning and Optimization&#8221; and we are very excited to have [...]<p><p></p>
<a href="http://thomaslarock.com/2012/01/presenting-at-techeds-this-year/">Presenting at Tech-Ed(s) This Year</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div id="attachment_7412" class="wp-caption alignleft" style="width: 272px"><img class="size-full wp-image-7412" title="Wall O'Cheese" src="http://thomaslarock.com/wp-content/uploads/2012/01/cheese.jpeg?9d7bd4" alt="Wall O'Cheese" width="262" height="193" /><p class="wp-caption-text">I&#39;m hoping they have enough wine to go with all that cheese.</p></div>
<p>The announcements came out yesterday and I can now tell the world that I will be presenting at TechEd this year. Denny Cherry (<a href="http://itknowledgeexchange.techtarget.com/sql-server/">blog</a> | @<a href="http://twitter.com/mrdenny">mrdenny</a>) and I will be doing a <a href="http://northamerica.msteched.com/preconferenceseminars" target="_blank">precon seminar</a> at TechEd in Orlando in June. The title is &#8220;Microsoft SQL Server Performance Tuning and Optimization&#8221; and we are very excited to have this opportunity.</p>
<p>And apparently Microsoft is excited to have us as well, because they are also sending the two of us to Amsterdam to do a <a href="http://europe.msteched.com/PreCons" target="_blank">repeat performance two weeks later</a> for TechEd Europe.</p>
<p>Go and get yourself registered for <a href="http://northamerica.msteched.com/registration" target="_blank">Orlando</a>, <a href="http://europe.msteched.com/Registration" target="_blank">Amsterdam</a>, or both!</p>
<p>I&#8217;m making a list of all the things I want to see and do in Amsterdam while there, and I&#8217;m putting Van Halen at the top of the list followed by eating a raw herring while wearing wooden shoes and sitting under a windmill.</p>
<p><p></p>
<a href="http://thomaslarock.com/2012/01/presenting-at-techeds-this-year/">Presenting at Tech-Ed(s) This Year</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-7409"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fpresenting-at-techeds-this-year%2F' data-shr_title='Presenting+at+Tech-Ed%28s%29+This+Year'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fpresenting-at-techeds-this-year%2F' data-shr_title='Presenting+at+Tech-Ed%28s%29+This+Year'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2012/01/presenting-at-techeds-this-year/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Do You Make These 5 Database Design Mistakes?</title>
		<link>http://thomaslarock.com/2012/01/do-you-make-these-5-database-design-mistakes/</link>
		<comments>http://thomaslarock.com/2012/01/do-you-make-these-5-database-design-mistakes/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 19:20:24 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[SQLServerPedia Wiki]]></category>
		<category><![CDATA[data quality]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[mistakes]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=7297</guid>
		<description><![CDATA[Look, everyone makes mistakes. It&#8217;s true. But not all of us have the chance to make mistakes that end up costing millions of dollars in hardware and production support costs.
Any one of the following five mistakes listed below will add additional costs to your company. It&#8217;s guaranteed. The costs could be hardware related (extra disk space, [...]<p><p></p>
<a href="http://thomaslarock.com/2012/01/do-you-make-these-5-database-design-mistakes/">Do You Make These 5 Database Design Mistakes?</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignleft size-thumbnail wp-image-7316" title="undo-button" src="http://thomaslarock.com/wp-content/uploads/2012/01/undo-button-150x150.jpg?9d7bd4" alt="" width="150" height="150" />Look, everyone makes mistakes. It&#8217;s true. But not all of us have the chance to make mistakes that end up costing millions of dollars in hardware and production support costs.</p>
<p>Any one of the following five mistakes listed below will add additional costs to your company. It&#8217;s guaranteed. The costs could be hardware related (extra disk space, network bandwidth), which tend to add up quickly. The costs are also support related (bad performance, database re-design, report creation, etc.), and they add up <em>very</em> quickly.</p>
<p>Want to save your company some money, some headaches for your end-users, and ensure data quality all at the same time? Then avoid these five database design mistakes.</p>
<h3>1. Going BIG, just in case</h3>
<p>I often see data types being chosen as if they don&#8217;t matter. But the truth is <em>they do matter</em>. If you know that the only possible values for a certain column are between 0 and 100,000 then you don&#8217;t need to slap a BIGINT data type for that column when a INT would do just fine. Why does this matter? The BIGINT data type requires 8 bytes of storage, and the INT requires only 4 bytes of storage. That means for each row of data you could be wasting 4 bytes. Doesn&#8217;t sound like much, right?</p>
<p>OK then, let&#8217;s consider that your table has two million rows. Multiply those rows by 4 bytes and you have 8 million bytes, or roughly 7.8MB of wasted space. I know it doesn&#8217;t sound like a lot, does it? Well, it adds up, and quickly. I&#8217;ve only shown you an example for just one column, but what about those NCHAR(2000) columns that are storing mostly first and last names? How much extra overhead for those? How about your date columns? Do you have a need for calendar dates prior to the year 1900, or after the year  2079? Then SMALLDATETIME is likely to work just fine for you.Oh, and let&#8217;s not forget that these columns can be indexed, and those indexes will also be unnecessarily wider as well.</p>
<p>Choosing the right data type matters, for all sorts of reasons. Take the time and make an effort to get it right at the start.</p>
<h3>2. Expecting a DBMS feature to mean the same across all systems</h3>
<p>Bigger companies tend to have a variety of systems, all of which need to exchange data. It is quite common to see familiar terms in use by those systems. For example, you are likely to see the use of the term TIMESTAMP. You simply cannot assume that the format of TIMESTAMP will be the same between systems. If you do you are likely to have issues at some point. If you are lucky the issues will manifest themselves early. If you are unlucky the issue will lay dormant until the worst possible time for your system to come to a grinding halt.</p>
<div id="attachment_7317" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-7317" title="bridge_design_mistake" src="http://thomaslarock.com/wp-content/uploads/2012/01/bridge_design_mistake-300x226.jpg?9d7bd4" alt="What's the worst that can happen?" width="300" height="226" /><p class="wp-caption-text">What&#39;s the worst that can happen?</p></div>
<p>I chose TIMESTAMP as my example here because it is one of my favorite misnomers inside of SQL Server. Why? <a href="http://msdn.microsoft.com/en-us/library/ms182776(v=sql.90).aspx">Because TIMESTAMP has nothing to do with date or time</a>. And I love this hidden gem inside the BOL:</p>
<p><em>The Transact-SQL timestamp data type is different from the timestamp data type defined in the ISO standard.</em></p>
<p>So that means other systems that <em>do</em> adhere to the ISO standard of what it means to be a TIMESTAMP are going to return something vastly different. Take Oracle, for example, and <a href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements001.htm">how they define a TIMESTAMP value</a>. Even <a href="http://www.devx.com/dbzone/Article/28713">DB2 has some subtle differences</a> as well. The lesson here is that when you are working with disparate systems, do not assume that familiar terminologies will work in exactly the same way.</p>
<h3>3. Expecting database-generated identifiers to be sequential</h3>
<p>Being able to insert data into a database in sequential order has many benefits, and most database designers will look to implement some type of mechanism to ensure that such sequences are used. However, many of those mechanisms will leave &#8220;gaps&#8221; from time to time, and these gaps lead to confusion as people except to see {1, 2, 3, 4, 5&#8230;} and not something like {1, 2, 4, 5, 6&#8230;}. As soon as a gap is found people send out a search party, looking for the missing data. I know I&#8217;ve lost hours trying to track down &#8220;bugs&#8221; in systems where people thought rows of data were missing, only to realize that the integrity of the data was fine but the method for generating the sequence was not.</p>
<p>Now, for reasons I can&#8217;t explain, people just <strong><em>love</em></strong> GUIDs in database designs. One of the (many) issues with GUIDs is that they are not sequential by default. This will lead to decreased performance, often in a very short amount of time. For a great explanation of this in detail, <a href="http://sqlskills.com/BLOGS/KIMBERLY/post/GUIDs-as-PRIMARY-KEYs-andor-the-clustering-key.aspx">check out this post by Kimberly Tripp at SQL Skills</a>. The part you want to pay attention to is here:</p>
<p><em>&#8220;But, a GUID that is not sequential&#8230;can be a <strong>horribly bad choice</strong> - primarily because of the fragmentation that it creates in the base table but also because of its size. It&#8217;s unnecessarily wide&#8230;&#8221;</em></p>
<p>Yeah, that *is* what she said.</p>
<h3>4. Not examining your foreign keys (FKs) as part of your indexing strategy</h3>
<p>I am assuming, of course, that you even <em>have</em> foreign keys defined. I&#8217;ve seen *many* databases that have little to no primary keys, foreign keys, or even any indexes defined. No, I don&#8217;t know who would do such a thing either. But they&#8217;re out there, and sooner or later you will find them, too.</p>
<p>Assuming you have FKs defined then you should be evaluating to see if it would make sense to add indexes to match those FK definitions. In some case, it will. In other cases, it won&#8217;t. But you should make certain that this type of review is part of your overall design process.</p>
<h3>5. Applying surrogate key without having the original business key as an alternate</h3>
<p>Back to those folks who love the GUIDs for a moment. If you are using a surrogate key (and, ideally, one that is sequential) in your database design you should not forget that the data in your table should also have an alternate key based upon the business logic that was used to necessitate the creation of the table in the first place.</p>
<p>Many database designers tend to focus on the surrogate key only, and forget all about the other columns. And this is bad for your data quality, as it would allow for duplicate values to creep into your business layer if you do not put a unique constraint/index on that alternate key. Nobody wants that, trust me.</p>
<p>And there you have it. Avoid these five database design mistakes and save your company money, headaches, and ensure data quality all at the same time.</p>
<p><p></p>
<a href="http://thomaslarock.com/2012/01/do-you-make-these-5-database-design-mistakes/">Do You Make These 5 Database Design Mistakes?</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-7297"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fdo-you-make-these-5-database-design-mistakes%2F' data-shr_title='Do+You+Make+These+5+Database+Design+Mistakes%3F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2012%2F01%2Fdo-you-make-these-5-database-design-mistakes%2F' data-shr_title='Do+You+Make+These+5+Database+Design+Mistakes%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2012/01/do-you-make-these-5-database-design-mistakes/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>7 Mistakes You Can&#8217;t Afford To Make When Upgrading to SQL 2012</title>
		<link>http://thomaslarock.com/2011/12/7-mistakes-you-cant-afford-to-make-when-upgrading-to-sql-2012/</link>
		<comments>http://thomaslarock.com/2011/12/7-mistakes-you-cant-afford-to-make-when-upgrading-to-sql-2012/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 16:40:44 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[SQLServerPedia Wiki]]></category>
		<category><![CDATA[Denali]]></category>
		<category><![CDATA[migrating]]></category>
		<category><![CDATA[mistakes]]></category>
		<category><![CDATA[sp_refreshview]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[upgrading]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=7161</guid>
		<description><![CDATA[
It&#8217;s new, it&#8217;s shiny, and it smells like frozen yogurt.
No, it&#8217;s not the blender you got for Christmas. It&#8217;s SQL 2012 (formerly known as codename &#8216;Denali&#8217;). And it&#8217;s here. And you want to use it, you know you do.
As much as you would like to believe that migrating to SQL 2012 is as easy as [...]<p><p></p>
<a href="http://thomaslarock.com/2011/12/7-mistakes-you-cant-afford-to-make-when-upgrading-to-sql-2012/">7 Mistakes You Can&#8217;t Afford To Make When Upgrading to SQL 2012</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignleft size-medium wp-image-7239" title="SQL-Server-2012" src="http://thomaslarock.com/wp-content/uploads/2011/12/SQL-Server-2012-300x246.png?9d7bd4" alt="" width="300" height="246" /></p>
<p>It&#8217;s new, it&#8217;s shiny, and it smells like frozen yogurt.</p>
<p>No, it&#8217;s not the <a title="Rohypnol not included." href="http://www.blenderworld.com/vita-1500.html">blender you got for Christmas</a>. It&#8217;s SQL 2012 (formerly known as codename &#8216;Denali&#8217;). <a href="http://www.microsoft.com/sqlserver/en/us/future-editions.aspx">And it&#8217;s here</a>. And you want to use it, you know you do.</p>
<p>As much as you would like to believe that migrating to SQL 2012 is as easy as doing a backup and a restore, the reality is that you need to take some extra steps before letting your end users run amok in SQL 2012 goodness. The last thing you want is for one of them to get in there and report back things like:</p>
<p>&#8220;It&#8217;s slower than SQL 2008&#8243;, or</p>
<p>&#8220;When will your team be able to support SQL 2012?&#8221;</p>
<p>Nobody wants that to happen to you. Here are the seven mistakes you can&#8217;t afford to make.</p>
<h3>1. Failing to use the SQL 2012 Upgrade Advisor</h3>
<p>The <a href="http://msdn.microsoft.com/en-us/library/ms144256(v=sql.110).aspx">SQL 2012 Upgrade Advisor</a> (UA) is just that: an advisor. It doesn&#8217;t fix everything, it merely advises you on what actions you should take when upgrading to SQL 2012. The actions the UA recommends will come in two forms: those actions to be done prior to a migration, and those actions to be completed post-migration. The UA is really good at finding what I call the &#8220;stub-your-big-toe&#8221; things that need fixing prior to a migration. But it is not foolproof, it will not identify every last detail. You will need to play the role of an actual DBA when migrating to a new version.</p>
<h3>2. Not reviewing the &#8220;breaking changes&#8221; section in the Books Online</h3>
<p>Did you know that Microsoft <a href="http://technet.microsoft.com/en-us/library/ms143179(SQL.110).aspx">publishes a list of breaking changes</a> for each version of SQL Server? Well, you do now. You should review them to the point that they are familiar to you. You don&#8217;t have to memorize them all, just be familiar with them so that if something odd happens you can think to yourself &#8220;&#8230;hey, is this odd behavior listed in the breaking changes section of the BOL&#8221;? I would like to believe that the UA will alert you to many of these breaking changes but the truth is the UA is not as dynamic as the BOL. That means the BOL may have an entry or two that doesn&#8217;t make it into the UA checklist, and that is why you should review this section.</p>
<h3>3. Skipping the &#8220;behavioral changes&#8221; section in the Books Online</h3>
<p>Similar to the breaking changes, the <a href="http://msdn.microsoft.com/en-us/library/cc707785(v=sql.110).aspx">behavioral changes</a> are changes that could still affect you in an adverse way. They are definitely worth reviewing, and they are also things that the UA is likely to never report back to you about because they aren&#8217;t things that *will* break, but merely things that *could* break.</p>
<h3>4. Forgetting to execute DBCC CHECKDB WITH DATA_PURITY</h3>
<p>One of your post-migration or upgrade tasks should be to <a href="http://msdn.microsoft.com/en-us/library/ms176064(v=SQL.110).aspx">run the following</a> statement:</p>
<pre>DBCC CHECKDB WITH DATA_PURITY;</pre>
<p>This statement will check your data for values that are no longer valid for the column datatype. For databases created prior to SQL 2005 (and you *know* they are still out there), this step is rather important to take. For databases created in SQL 2005 and later, the DATA_PURITY check is <em>supposed</em> to be done automatically with a regular CHECKDB.</p>
<p>But what about a database that was <em>created</em> in SQL 2000, migrated (poorly) to a SQL 2008 instance, and left in the SQL 2000 (80) backward compatibility mode? What about that little feller? Do you want to assume that the DATA_PURITY check has been getting done? Here&#8217;s a thought: just go run it yourself anyway. That way you know it is getting done.</p>
<h3>5. Ignoring the execute DBCC UPDATEUSAGE command</h3>
<p>While not as critical as the DATA_PURITY command noted previously, this one still has a place in any migration or upgrade process:</p>
<pre>DBCC UPDATEUSAGE(db_name);</pre>
<p>This <a href="http://msdn.microsoft.com/en-us/library/ms188414(v=SQL.110).aspx">command</a> will help fix any page count inaccuracies that are resulting in the sp_spaceused stored procedure returning wrong results. And much like the DATA_PURITY check, this command is also recommended for databases that were created prior to SQL 2005. For databases created in SQL 2005 and later, you should only run this command if you feel you are getting inaccurate results from sp_spaceused, and you should note that for very large tables this command could take a long time to execute.</p>
<h3>6. Not updating statistics</h3>
<p>This one is not to be skipped and is simply a MUST for any migration or upgrade checklist:</p>
<pre>USE db_name;
GO
EXEC sp_updatestats;</pre>
<p>This command will update the statistics for all the tables in your database. It issues the <a href="http://msdn.microsoft.com/en-us/library/ms187348(v=sql.110).aspx">UPDATE STATISTICS command</a>, which warrants mentioning because you *may* want to use that command with the FULLSCAN option. I&#8217;m the type of person that would rather be safe than sorry and therefore would end up running something like this:</p>
<pre>USE db_name;
GO
EXEC sp_MSforeachtable @command1='UPDATE STATISTICS ? WITH FULLSCAN';</pre>
<p>Bottom line here: don&#8217;t forget to update the statistics.</p>
<h3>7. Failing to refresh your views using sp_refreshview</h3>
<p>Believe it or not, every now and then someone will build a view that spans into another database on the same instance. And, in what may be a complete surprise to many, sometimes these views will go across a linked server as well. The point here is that your view may not be contained in just your database. In what could be the most dramatic twist of all, sometimes these views are created using a SELECT * syntax.</p>
<p>I know, I know…what are the odds that you could have such code in your shop? But it happens. And when you have bad code on top of views that go to other databases (or views of views of views of whatever else some sadistic person built) you are going to want to <a href="http://msdn.microsoft.com/en-us/library/ms187821(v=SQL.110).aspx">use sp_refreshview</a> to refresh those views.</p>
<p>So, if you are migrating a database in your environment to a new server then it would be a good idea to refresh your views using sp_refreshview. Most of the time it won’t do anything for you, much like any movie with Stephen Baldwin. But there is that one chance where it will dramatically improve performance and your customer will be happy as a result. It’s like flossing: it doesn’t take much effort, and the end result is usually worth that little effort.</p>
<p>And with the Holiday Season upon us, I leave you with a Christmas Bonus: an eighth mistake you can&#8217;t afford to make:</p>
<h3>BONUS: Forgetting to take backups</h3>
<p>You&#8217;re a DBA. Backups are in your DNA. You should have taken one prior to the start of any migration, and you had better take one right before you turn that database over to your end users. Also, you should save any output from the seven items listed above, as it could prove helpful should something go awry later.</p>
<p>There you have it, the mistakes you can&#8217;t afford to make when upgrading to SQL 2012. If you haven&#8217;t started building up your SQL 2012 migration or upgrade checklist yet, now is the time, and get these seven items included. They will save you pain, I promise.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><p></p>
<a href="http://thomaslarock.com/2011/12/7-mistakes-you-cant-afford-to-make-when-upgrading-to-sql-2012/">7 Mistakes You Can&#8217;t Afford To Make When Upgrading to SQL 2012</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-7161"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F12%2F7-mistakes-you-cant-afford-to-make-when-upgrading-to-sql-2012%2F' data-shr_title='7+Mistakes+You+Can%27t+Afford+To+Make+When+Upgrading+to+SQL+2012'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F12%2F7-mistakes-you-cant-afford-to-make-when-upgrading-to-sql-2012%2F' data-shr_title='7+Mistakes+You+Can%27t+Afford+To+Make+When+Upgrading+to+SQL+2012'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2011/12/7-mistakes-you-cant-afford-to-make-when-upgrading-to-sql-2012/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>12 Things You Should Stop Doing in 2012</title>
		<link>http://thomaslarock.com/2011/12/12-things-you-should-stop-doing-in-2012/</link>
		<comments>http://thomaslarock.com/2011/12/12-things-you-should-stop-doing-in-2012/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 16:27:27 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[SQL Azure]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[SQLServerPedia Wiki]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[living in the moment]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[things you should stop doing]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=7152</guid>
		<description><![CDATA[It&#8217;s the end of the year and already I am seeing the usual blog posts that either reflect on the year that was, or are pondering the year to come. I thought about writing another post covering all of the things that didn&#8217;t happen to me this past year but since I&#8217;ve already done that [...]<p><p></p>
<a href="http://thomaslarock.com/2011/12/12-things-you-should-stop-doing-in-2012/">12 Things You Should Stop Doing in 2012</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>It&#8217;s the end of the year and already I am seeing the usual blog posts that either reflect on the year that was, or are pondering the year to come. I thought about writing another post covering all of the <a title="Still no flying cars, WTF?" href="http://thomaslarock.com/2010/12/top-ten-things-that-didnt-happen-in-2010/">things that didn&#8217;t happen to me this past year</a> but since I&#8217;ve already done that before I figured I needed to do something different. So I decided on this post instead. You&#8217;re welcome.</p>
<p><img class="alignleft size-medium wp-image-7245" title="stop-sign" src="http://thomaslarock.com/wp-content/uploads/2011/12/stop-sign-252x300.jpg?9d7bd4" alt="" width="252" height="300" />Here are the 12 things you should stop doing in 2012.</p>
<h3>1. Using antiquated technology</h3>
<p>The line in the sand for me would be the ages of my children. If your software was written before they were born, I don&#8217;t want to be using it. But that measuring stick won&#8217;t work forever, so a better one is to make certain you are only at most one full version behind. If you are still running SQL2000 or Oracle9i, you are <a href="http://ss64.com/ora/syntax-versions.html">more than one version behind</a>, and you should really stop. It&#8217;s time to move on. Seriously.</p>
<h3>2. Responding immediately to every email</h3>
<p>Stop doing that. Trust me on this, your response to that email can wait. Don&#8217;t believe me? Try an experiment. For one month do not reply immediately to your emails. At the end of the month add up the number of emails you received, and the number of emails that required an immediate response. I&#8217;m willing to bet that the number is quite low, much lower than you realize. And once you realize just how few emails require an immediate reply, you&#8217;ll never look at email in the same way again.</p>
<h3>3. Over-thinking everything</h3>
<p>Some things in your life require analysis and thought, no question. But you don&#8217;t need to spend 30 minutes ordering coffee at Starbucks. Lots of things in your life are like that coffee, you should be able to just make a decision and move on. But for whatever reason we tend to analyze lots of decisions in our lives that don&#8217;t really need any extra analysis.</p>
<h3>4. Doing unproductive work</h3>
<p>Start tracking your daily tasks and see which ones are the most productive. Chances are you have a few tasks that don&#8217;t align with your highest level of goals. If you want to become the world&#8217;s best widget-maker then you need to focus on tasks that help you achieve that goal, and spend less time on tasks that don&#8217;t help you get there.</p>
<h3>5. Pretending that work-life balance exists</h3>
<p>It doesn&#8217;t. Sorry to be the bearer of bad news, but the idea of work-life balance is a myth perpetuated by HR departments that are trying to recruit you. This is especially true the higher up the corporate ladder you find yourself. And yes, that means if you are self-employed, you are essentially your own CEO, and you don&#8217;t just work at home but you also live at work. So stop pretending that any such work-life balance exists, it doesn&#8217;t. What you really have is work-life <em>management</em>, and we all know how hard it is to <a href="http://thomaslarock.com/2010/09/where-have-all-the-good-managers-gone/">find a good manager these days</a>.</p>
<h3>6. Multitasking every possible moment of the day</h3>
<p>Would it hurt you to focus on the task at hand for once? You don&#8217;t <strong>always</strong> have to be doing three things at once. Like texting and driving, for example. Remember I told you how that email can wait? Yeah, that is especially true if you are driving. Try <a href="http://www.psychologytoday.com/articles/200810/the-art-now-six-steps-living-in-the-moment">living in the moment</a> a few times a day and you may be surprised to see the quality of your output rising as a result of your increased focus on one specific task.</p>
<h3>7. Trying to keep up with the Kardashians</h3>
<p>&#8230;or watching Jersey Shore, or those shows about &#8220;real&#8221; housewives. If we all just stop watching, there is a chance the shows may disappear altogether. That&#8217;s the world I&#8217;d like to leave for my children: a world free from crappy reality TV, and reality TV &#8220;stars&#8221;.</p>
<h3>8. Stop arguing with people on the internet</h3>
<p>It&#8217;s just not worth it, even when they are wrong, and even when they attack you. The internet is a big place, and it is full of opinions. Let people express their opinion. It&#8217;s OK. If you really feel the need to inject yourself into a conversation, don&#8217;t do it. You won&#8217;t win. You can&#8217;t win. It&#8217;s the internet, and every time you try to get the last word in about something, or try to demean someone because you feel you have been wronged, all it does is make you look a little more foolish than if you had written nothing at all.</p>
<h3>9. Resisting the Cloud</h3>
<p>Look people, stop making excuses for why you can&#8217;t move to the Cloud. <a href="http://www.infoworld.com/d/cloud-computing/what-cloud-computing-really-means-031">It&#8217;s here, and people are using it already</a>. That means they are learning lessons about Cloud technology. They are learning what works best for them, and they are ahead of you by doing so. How much longer do you want to wait at the starting line while everyone passes you by? Get in the game now. Find something that you can deploy to the Cloud and put the learning curve behind you, and do it quickly. Otherwise you are going to find your skills are out of date, and quickly.</p>
<h3>10. Comparing yourself to others</h3>
<p>You&#8217;ll never be as good as that other person. It&#8217;s true. You will only ever become second-best, because you will always feel they are better than you anyway. It&#8217;s a losing effort, so don&#8217;t bother. Instead, find out what one or two things you like most about them and see if you can adapt those things to fit your personality or lifestyle. At the end of the day you have to be yourself, but it&#8217;s OK if you get some influence and inspiration from others. Just don&#8217;t try to be an exact replica because <a href="http://www.markpeterdavis.com/.a/6a00e0098c5051883301538f175542970b-450wi">that&#8217;s just creepy</a>.</p>
<h3>11. Thinking that you need to go it alone</h3>
<p>I see this a lot. In fact, I lived it. I thought I was all alone in my role as a DBA. But I wasn&#8217;t, because I had a <a href="http://www.sqlpass.org">network of colleagues</a> out there willing to help. You don&#8217;t need to do anything alone in life, you can always find someone willing to help. Even misery loves company. And whether you are a DBA or the CEO of your company, you don&#8217;t have to work in a vacuum, there is a network of your peers willing to lend you a hand. It&#8217;s OK to ask for help, to admit that you may have been able to do something better. If your end goal for life is to have &#8220;I did it myself&#8221; on your tombstone then you should expect a lot of lonely Holiday dinners.</p>
<h3>12. Reading blog posts titled &#8220;12 Things in 2012&#8243;</h3>
<p>They&#8217;re a waste of your time. Go kiss your children goodnight and read them a story instead.</p>
<p>I figure that eliminating the above items will save me a lot of time in 2012. I have no idea what I will do with the extra time yet, but I&#8217;m sure I will think of something before the Mayans attack in late December.</p>
<p><p></p>
<a href="http://thomaslarock.com/2011/12/12-things-you-should-stop-doing-in-2012/">12 Things You Should Stop Doing in 2012</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-7152"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F12%2F12-things-you-should-stop-doing-in-2012%2F' data-shr_title='12+Things+You+Should+Stop+Doing+in+2012'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F12%2F12-things-you-should-stop-doing-in-2012%2F' data-shr_title='12+Things+You+Should+Stop+Doing+in+2012'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2011/12/12-things-you-should-stop-doing-in-2012/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Help Your SQL Family Give Even More</title>
		<link>http://thomaslarock.com/2011/12/help-your-sql-family-give-even-more/</link>
		<comments>http://thomaslarock.com/2011/12/help-your-sql-family-give-even-more/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 20:18:31 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[SQLServerPedia Wiki]]></category>
		<category><![CDATA[SQL Family]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=7132</guid>
		<description><![CDATA[Late last week, while I was traveling to the Confio world headquarters, I received a direct message on Twitter that simply pointed me to this link that I want you to go and read right now:
Done? Good.
Here comes the important part: action. I want you to do three things:

Write a #SQLFamily story. It doesn&#8217;t have [...]<p><p></p>
<a href="http://thomaslarock.com/2011/12/help-your-sql-family-give-even-more/">Help Your SQL Family Give Even More</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Late last week, while I was traveling to the <a href="http://www.confio.com">Confio</a> world headquarters, I received a direct message on Twitter that simply pointed me to this link that I want you to <a href="http://blogs.technet.com/b/dataplatforminsider/archive/2011/12/08/help-the-sqlfamily-give-back.aspx" target="_blank">go and read right now</a>:</p>
<p>Done? Good.</p>
<p>Here comes the important part: action. I want you to do three things:</p>
<ol>
<li>Write a #SQLFamily story. It doesn&#8217;t have to be a blog post. It doesn&#8217;t have to be long. It just has to <em>be</em>.</li>
<li>Send your submission to <a href="mailto:sqlfamilysubmission@live.com?subject=SQLFamily">sqlfamilysubmission@live.com</a>. If you posted to a blog, send a link to that blog post.</li>
<li>There is no third thing, you are done already, see how easy this is?</li>
</ol>
<p>It&#8217;s a very easy way for you to help make a difference for someone else.</p>
<p>Go. Write. Now.</p>
<p>&nbsp;</p>
<p><p></p>
<a href="http://thomaslarock.com/2011/12/help-your-sql-family-give-even-more/">Help Your SQL Family Give Even More</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-7132"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F12%2Fhelp-your-sql-family-give-even-more%2F' data-shr_title='Help+Your+SQL+Family+Give+Even+More'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F12%2Fhelp-your-sql-family-give-even-more%2F' data-shr_title='Help+Your+SQL+Family+Give+Even+More'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2011/12/help-your-sql-family-give-even-more/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Oracle. Oppressive. Costs.</title>
		<link>http://thomaslarock.com/2011/12/oracle-oppressive-cost/</link>
		<comments>http://thomaslarock.com/2011/12/oracle-oppressive-cost/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 16:12:50 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[SQLServerPedia Wiki]]></category>
		<category><![CDATA[costs]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[SQL 2012]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=7129</guid>
		<description><![CDATA[It seems that everywhere I turn these days I am either reading or hearing about how the new SQL2012 licensing changes are the worst thing since Windows Vista, and possibly since Microsoft Bob.
Well I am here to tell you that things could always be worse. How so? Check out this blog post regarding Oracle and [...]<p><p></p>
<a href="http://thomaslarock.com/2011/12/oracle-oppressive-cost/">Oracle. Oppressive. Costs.</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>It seems that everywhere I turn these days I am either reading or hearing about how the new <a href="http://itknowledgeexchange.techtarget.com/sql-server/sql-server-2012-licensing-changes/">SQL2012 licensing changes</a> are the worst thing since <a href="http://chris.pirillo.com/65-more-windows-vista-mistakes/">Windows Vista</a>, and possibly since <a href="http://www.youtube.com/watch?v=ZegWedG-jk4">Microsoft Bob</a>.</p>
<p>Well I am here to tell you that things could always be worse. How so? Check out this blog post regarding Oracle and their costs:</p>
<p><a href="http://smarterquestions.org/2011/12/oracle-imposes-oppressive-maintenance-costs-on-sun-hardware-clients/">http://smarterquestions.org/2011/12/oracle-imposes-oppressive-maintenance-costs-on-sun-hardware-clients/</a></p>
<p>So, your three takeaways from that article are this:</p>
<ol>
<li>Oracle</li>
<li>Oppressive</li>
<li>Costs</li>
</ol>
<p>The more I get to see of Oracle&#8217;s licensing and how they nickle and dime you for everything reminds me of how airlines operate, or even <a href="http://thomaslarock.com/2011/07/hootsuite-can-pay-me-5-99-a-month-to-stop-reading-this/">Hootsuite</a>.</p>
<p>I&#8217;m happy with how Microsoft is doing their licensing, but that&#8217;s also because I don&#8217;t run a data center and have to buy licenses, or Software Assurance, or, well&#8230;anything. But I am also aware that in about ten years none of this will matter because it will be all-Azure, all the time.</p>
<p>Get used to the changes people, there&#8217;s still more of them to come.</p>
<p>And be thankful you aren&#8217;t writing multiple checks to Larry Ellison every few weeks.</p>
<p><p></p>
<a href="http://thomaslarock.com/2011/12/oracle-oppressive-cost/">Oracle. Oppressive. Costs.</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-7129"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F12%2Foracle-oppressive-cost%2F' data-shr_title='Oracle.+Oppressive.+Costs.'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F12%2Foracle-oppressive-cost%2F' data-shr_title='Oracle.+Oppressive.+Costs.'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2011/12/oracle-oppressive-cost/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The DBA Plate</title>
		<link>http://thomaslarock.com/2011/11/the-dba-plate/</link>
		<comments>http://thomaslarock.com/2011/11/the-dba-plate/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 15:46:41 +0000</pubDate>
		<dc:creator>sqlrockstar</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[SQL MVP]]></category>
		<category><![CDATA[SQLServerPedia Wiki]]></category>
		<category><![CDATA[common]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[giving]]></category>
		<category><![CDATA[plate]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[tasks]]></category>

		<guid isPermaLink="false">http://thomaslarock.com/?p=6892</guid>
		<description><![CDATA[It&#8217;s Thanksgiving week here in the USA. I have two things I want to mention.
First, last Wednesday I did a product demo for Confio Software, you can read more details about that inside my post title Help Me To Feed Others. We raised close to $1,000 for Community Food Share, which will help to feed [...]<p><p></p>
<a href="http://thomaslarock.com/2011/11/the-dba-plate/">The DBA Plate</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>It&#8217;s Thanksgiving week here in the USA. I have two things I want to mention.</p>
<p>First, last Wednesday I did a product demo for <a href="http://www.confio.com">Confio Software</a>, you can read more details about that inside my post title <a href="http://thomaslarock.com/2011/11/help-me-to-feed-others/">Help Me To Feed Others</a>. We raised close to $1,000 for Community Food Share, which will help to feed many families this week. I could not be happier to know that I played a part in making that happen. Thank you for attending and helping us last week.</p>
<p>Second, after hearing that <a href="http://www.huffingtonpost.com/kristin-wartman/pizza-is-a-vegetable_b_1101433.html">Congress has declared pizza to be a vegetable</a>, it struck me that as a DBA we need our own &#8220;<a href="http://www.choosemyplate.gov/">food plate</a>&#8220;. Why would we need this? Simple:</p>
<p><em>Many people have no idea what a DBA does for daily work.</em></p>
[And most of the time these people are also put in charge of DBAs, but I digress.]
<p>Sadly, most new DBAs also have no idea what they are supposed to be doing, and no mentor to help them along the way. This is especially true in Microsoft shops, where the installation and use of SQL Server is so easy that many forget the fact that you need someone to administer what has been installed.</p>
<p>So, I decided to borrow the &#8220;food plate&#8221; idea and apply it for DBAs.</p>
<p><a href="http://thomaslarock.com/wp-content/uploads/2011/10/dba_plate11.png?9d7bd4" rel="prettyPhoto[6892]"><img class="alignnone size-full wp-image-6911" style="margin-right: 1000px;" title="dba_plate1" src="http://thomaslarock.com/wp-content/uploads/2011/10/dba_plate11.png?9d7bd4" alt="" /></a></p>
<p>Everything is there, really. Backups should be the biggest part of your plate, followed by maintenance. Monitoring and tuning come next, and you should have a side plate of training as well. I hope this clears up everything. What&#8217;s that? You need more details? OK then, how about this&#8230;</p>
<h3>Backups</h3>
<p>The number one responsibility for any DBA is the ability to recover. If you cannot recover you should find a different career. And that word (&#8220;recover&#8221;) can mean a lot of different things. It could be your ability to recover as the result of a large scale disaster. It could be your ability to recover the piece of data that was updated inside of one row, in one table, in one database, in some obscure instance of SQL hundreds of miles away. And it could also be everything in between those two events.</p>
<p>And you can&#8217;t do any of that without having backups in place, having them running in a consistent manner, the ability to check that they are running, and even <a href="http://www.simple-talk.com/sql/database-administration/statistical-sampling-for-verifying-database-backups/">testing that they are valid by doing some periodic restores</a>.</p>
<p>Backups: <a href="http://www.youtube.com/watch?v=yzXPzhoo9cI">It&#8217;s what&#8217;s for DBA dinner</a>.</p>
<h3>Maintenance</h3>
<p>This part of your plate is for things like the rebuild/reorganizing of indexes, or the updating of statistics. Essentially, anything that helps to maintain the current performance levels for your end users are what I consider to be &#8220;maintenance&#8221;. However there is also administrative maintenance, such as the removal of logins that are no longer used, or running DBCC CHECKDB.</p>
<h3>Monitoring</h3>
<p>This part of your plate is for the items you want to be alerted and take action upon. For example, running low on disk space, or seeing a spike in CPU utilization, or having one of your SQL Agent jobs fail. As a DBA we are keen to collect all sorts of details about our instances and databases because we never know which particular piece of data is going to help us diagnose and resolve an issue. But you should only collect the pieces of information that help you to take action. If you try to monitor everything possible then you may find that the biggest performance impact on your system is yourself!</p>
<h3>Tuning</h3>
<p>This part of your plate is when you roll up your sleeves and make adjustments to your instances in some way. Tuning could be the rewriting of T-SQL statements, it could be adding memory to a server, or even the <a href="http://content.dell.com/us/en/healthcare/d/healthcare/information-lifecycle-tiered-storage">partitioning of data to align with tiered storage</a>. In essence, anything that goes beyond the traditional maintenance tasks is what I would consider to be tuning.</p>
<h3>Training</h3>
<p>This is the little side plate to everything else that you do. Think of it like having a few strips of bacon with your meal. You need to be constantly keeping up to date with the latest trends in technology. Most of this training is a lot of self-help, but you can also attend events such as SQL Saturdays or the PASS Summit. Just make certain that you reinforce whatever you have been taught by taking the time to <a href="http://thomaslarock.com/2011/11/what-is-training/">lay your hands on the product or piece of functionality</a>.</p>
<p>Happy Thanksgiving.</p>
<p><p></p>
<a href="http://thomaslarock.com/2011/11/the-dba-plate/">The DBA Plate</a> is a post from: <a href="http://thomaslarock.com">SQLRockstar | Thomas LaRock</a>
<p></p>
Join Denny Cherry (<a href="http://www.twitter.com/mrdenny">@mrdenny</a>) and me for two days of SQL instruction, training, and wine tasting in the California sunshine <a href="http://sqlexcursions.com/napa-2011-sign-up">this May for $799</a>.
<p></p>
</p>
<div class="shr-publisher-6892"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F11%2Fthe-dba-plate%2F' data-shr_title='The+DBA+Plate'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fthomaslarock.com%2F2011%2F11%2Fthe-dba-plate%2F' data-shr_title='The+DBA+Plate'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://thomaslarock.com/2011/11/the-dba-plate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 21/70 queries in 0.034 seconds using disk: basic
Object Caching 2031/2184 objects using disk: basic

Served from: thomaslarock.com @ 2012-02-07 12:42:15 -->
