<?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>Allen Kinsel - SQL DBA &#187; SQL Server</title>
	<atom:link href="http://www.allenkinsel.com/Topics/sql-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.allenkinsel.com</link>
	<description>SQL Server, PASS, and other data mishaps</description>
	<lastBuildDate>Tue, 13 Dec 2011 14:51:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<image>
  <link>http://www.allenkinsel.com</link>
  <url>http://www.allenkinsel.com/favicon.ico</url>
  <title>Allen Kinsel - SQL DBA</title>
</image>
		<item>
		<title>PASS pass and more PASS</title>
		<link>http://www.allenkinsel.com/archive/2011/10/pass-pass-and-more-pass/</link>
		<comments>http://www.allenkinsel.com/archive/2011/10/pass-pass-and-more-pass/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 14:02:39 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLPASS]]></category>
		<category><![CDATA[Summit]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[Volunteer]]></category>
		<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=936</guid>
		<description><![CDATA[As I sit writing this post I realize that in a weeks time Ill be in Seattle at the 2011 PASS Summit.
Like most in the SQL community who are fortunate enough to attend the annual summit I am looking forward to next Sunday.  But, unlike most I am probably looking forward to this years summit]]></description>
			<content:encoded><![CDATA[<p>As I sit writing this post I realize that in a weeks time Ill be in Seattle at the 2011 PASS Summit.</p>
<p>Like most in the SQL community who are fortunate enough to attend the annual summit I am looking forward to next Sunday.  But, unlike most I am probably looking forward to this years summit for slightly different reasons. I&#8217;m definitely ready for the plethora of sessions, the great networking and all of the regular things everyone looks forward to (SQLKARAOKE!) but, when you are as heavily involved as I am in leading the Summit Program Committee, just getting it &#8220;started&#8221; is a huge relief.</p>
<p>For the last four years Ive looked forward to the Sunday before the Summit like ive looked forward to no other Sunday of the year.  However this year is going to be different!  This year will be my last year of leading the Summit &#8220;Program Committee&#8221;.  Its truly bittersweet for me as Ive really loved doing this but Its time for me to focus on doing other things for our great community.</p>
<p><a href="http://www.8ball.co.uk/tshirts/beenthere,donethatt-shirt_1_109481_brown-cream-print_l.jpg"><img class="alignright size-full wp-image-947" title="Been there done that" src="http://www.allenkinsel.com/wp-content/uploads/2011/10/beentheredonethatt-shirt_1_109481_brown-cream-print_l.jpg" alt="" width="300" height="300" /></a></p>
<p>I plan on handing the reigns of the summit over to _____ after the end of this years Summit.  I wish I knew who was taking over so I could tell you, but as it is no one has volunteered and PASS doesn&#8217;t exactly have a structure in place to allow for transnational hand off(more on this later).  I wish I could say it will be all Rainbows and Unicorns for the next person leading the program committee but, the reality is it is a lot of work.  The payoff is quite large though in knowing that you lead a group of 30ish volunteers to do a large portion of the work in making the summit a success but, even with a dedicated support staff (PASSHQ) its still a challenge.  After doing every job from the bottom to the top of this small piece of PASS I  feel like ive literally &#8220;Been there, done that, got the T-shirt&#8221;</p>
<p>I&#8217;d guess Ive spent at least 10 hours a week on average working on the Summit for the last several years and this year I added on regular PASS Board member tasks and am regularly exceeding those 10 hours a week, unfortunately, its just not sustainable for me any longer.  Im happy to spend the time for the community but, Its time for a new challenge and fortunately being on the PASS Board affords me all of the community challenges I could ever need (including figuring out to handle transition within PASS mentioned earlier). </p>
<p>If you spot me at the Summit, feel free to stop over and introduce yourself, I promise not to try and convince you to volunteer to take my PASS job!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/10/pass-pass-and-more-pass/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Meme Monday &#8212; Favorite PASS Memory &#8212; Shared Experiences</title>
		<link>http://www.allenkinsel.com/archive/2011/09/meme-monday-favorite-pass-memory-shared-experiences/</link>
		<comments>http://www.allenkinsel.com/archive/2011/09/meme-monday-favorite-pass-memory-shared-experiences/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 14:30:14 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQLPASS]]></category>
		<category><![CDATA[Summit]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[Volunteer]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Meme]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=924</guid>
		<description><![CDATA[Tom (Blog&#124;Twitter) Asked about our favorite PASS memories for this months post.  With all that I have going on trying to get the Schedule out for this years Summit, I hadnt planned on writing anything this month but I just read Grant Fritchey&#8217;s excellent post and it struck me that I really should write about this one. ]]></description>
			<content:encoded><![CDATA[<p>Tom (<a href="www.thomaslarock.com">Blog</a>|<a href="http://twitter.com/sqlrockstar">Twitter</a>) Asked about our favorite<a href="http://thomaslarock.com/2011/08/meme-monday-for-september/"> PASS memories </a>for this months post.  With all that I have going on trying to get the <a href="http://www.sqlpass.org/summit/2011/SummitContent.aspx">Schedule</a> out for this years Summit, I hadnt planned on writing anything this month but I just read Grant Fritchey&#8217;s excellent <a href="http://www.scarydba.com/2011/09/06/meme-monday-favorite-pass-memory/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+HomeOfTheScaryDba+%28Home+of+the+Scary+DBA%29">post </a>and it struck me that I really should write about this one.  You see, one of the most interesting things about his post was I actually remember about 90% of the things he mentions. </p>
<p>My favorite PASS memory isnt actually a single memory at all, its actually the conglomeration of all the SHARED experiences I have with all the hundreds(?) of people that I have gotten to know rather well over the years.  One of the most important things about our community of SQL professionals that I can never seem to put into words are those &#8220;Shared experiences&#8221;, they are what makes us unique.  Some first timers will listen to the conversations and think &#8220;what in the world is so funny&#8221; or &#8220;really, did that actually happen&#8221; or more likely, &#8220;what in the heck are they talking about&#8221; and I can see that there would be some intimidation factor with that but, the reality is you just have to jump in and start making those shared experiences of your own.  While some of my favorite shared experiences are from 2004-2006 that doesnt mean that I dont have some great ones from 2010 with people I had just met.  My point really is those experiences (which un/fortunately become memories) whether made at the Summit, a SQL Rally, SQL Saturday, or a local UG meeting are the things that actually tie us together as a group of professionals.  Sure, we all talk SQL and geek about it but, without the shared experience factor we&#8217;d all just be names behind posts on a Newsgroup/Forum which wouldnt be nearly as much fun!  </p>
<h6>just choose one</h6>
<p>If I had to list a single memory though it would be from 2004, where it all started for me.  You see I had just met <a href="http://sqlasylum.wordpress.com/">Pat Wright</a>, and <a href="http://thomaslarock.com">Tom Larock</a> and somehow they convinced me to attend the early morning (7AM If I recall) PASS volunteer session.  Im not an early morning person AT ALL so I definelty felt some peer pressure to go but, I can honestly say sitting in that session hosted by Wayne Snyder has probably changed my professional career as much or more than anything else.  Wayne is a very dynamic speaker and he had us all believing we could change the world, or at least the SQL portion of it.  I really miss those sessions, and wish we could find a way to ressurect them because this introvert would have never become involved with PASS had it not been for that 1 single session (and the encouragement of Tom and Pat) Thanks to the 3 of you for that!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/09/meme-monday-favorite-pass-memory-shared-experiences/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>T-SQL Tuesday #19 Wrapup</title>
		<link>http://www.allenkinsel.com/archive/2011/06/t-sql-tuesday-19-wrapup/</link>
		<comments>http://www.allenkinsel.com/archive/2011/06/t-sql-tuesday-19-wrapup/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 17:20:50 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[TSQLTuesday]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[tsql2sday]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=909</guid>
		<description><![CDATA[Huge Thanks go out to everyone who participated in this months T-SQL Tuesday.  
I apologize for the tardiness of this post, its been a busy week with PASS finalizing the Summit Sessions.
As always, there were some awesome posts this month!  If youve ever wondered why you need to prepare to recover your databases, or your]]></description>
			<content:encoded><![CDATA[<p>Huge Thanks go out to everyone who participated in this months <a href="http://www.allenkinsel.com/archive/2011/06/invitation-for-t-sql-tuesday-19-disasters-recovery">T-SQL Tuesday</a>.  <a href="http://www.allenkinsel.com/wp-content/uploads/2011/06/TSQL2sDay150x150.jpg"><img class="alignright size-full wp-image-900" title="TSQL2sDay150x150" src="http://www.allenkinsel.com/wp-content/uploads/2011/06/TSQL2sDay150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.allenkinsel.com/wp-content/uploads/2011/06/TSQL2sDay150x150.jpg"></a></p>
<p>I apologize for the tardiness of this post, its been a busy week with PASS finalizing the Summit Sessions.</p>
<p>As always, there were some awesome posts this month!  If youve ever wondered why you need to prepare to recover your databases, or your life for that matter I suggest reading through the huge amount of content below.</p>
<h2>The good stuff</h2>
<p>Rob Farley (<a href="http://sqlblog.com/blogs/rob_farley">B</a> | <a href="http://twitter.com/rob_farley">T</a>) Writes us a <a href="http://sqlblog.com/blogs/rob_farley/archive/2011/06/14/disaster-or-migration.aspx">two part post</a> with half being technical about migrations, downtime and high availability and the other half being personal with regards to dealing with and controlling life&#8217;s disasters.  Hats off to Rob for pouring it all out there.  (sometimes it just feels better to write it all down and put it in perspective)</p>
<p>Noel McKinney (<a href="http://noelmckinney.com">B</a> | <a href="http://twitter.com/noelmckinney">T</a>) recounts a <a href="http://noelmckinney.com/2011/06/t-sql-tuesday-019-%E2%80%93-human-sized-disasters/">bad situation</a> where he played the part of message queue during a human disaster where a developers spouse unplugged the telephone in the middle of the night (surprising this didnt cost someone a job)</p>
<p>John Pertell (<a href="http://www.pertell.com/sqlservings">B</a> | <a href="http://twitter.com/jayape">T</a>) tells us about times where he <a href="http://www.pertell.com/sqlservings/?p=272">learned lessons the hard way</a> about backups and restores.  His stories hit home for me and im sure they will for most other seasoned DBAs.  Ive lost more SAN arrays over the years to firmware flashes than I care to think about, so much so that I cringe when the SAN admin calls and even utters the word firmware.</p>
<p>Robert Davis (<a href="http://www.sqlsoldier.com/">B </a>| <a href="http://twitter.com/sqlsoldier">T</a>) writes about <a href="http://www.sqlsoldier.com/wp/sqlserver/beyondbackups">backing up system configurations </a>in the case of a complete server failure.  Good info in one place here about what you would loose if you lost one of the system databases.</p>
<p>Ricardo Leka (<a href="http://leka.com.br/">B</a> | <a href="http://twitter.com/bigleka">T</a>) turns in his <a href="http://leka.com.br/2011/06/14/t-sql-tuesday-19-disasters-recovery/">post</a> letting us know that its important to have a backup plan but even more important to have a recovery plan! (his post was in portugese so if I&#8217;m way off I blame google translate!  Thanks for the post Ricardo)</p>
<p>Merrill Aldrich (<a href="http://sqlblog.com/blogs/merrill_aldrich/default.aspx">B</a> | <a href="http://twitter.com/onupdatecascade">T</a>) reminds us to be aware of <a href="http://sqlblog.com/blogs/merrill_aldrich/archive/2011/06/13/t-sql-tuesday-19-blind-spots.aspx">blind spots </a>in the recovery scenario of our companies.  He shares some great info about cultures that can cause disasters to be unrecoverable.</p>
<p>Jack Vamvas (<a href="http://www.sqlserver-dba.com">B</a>) Shows us how he <a href="http://www.sqlserver-dba.com/2011/06/powershell-and-disaster-recovery-planning.html">uses powershell </a>to gather an inventory of SQL Server info that may be needed in the case of a disaster.</p>
<p>Mark Broadbent (<a href="http://tenbulls.co.uk">B</a> | <a href="http://twitter.com/retracement">T</a>) Writes a <a href="http://tenbulls.co.uk/2011/06/14/t-sql-tuesday-19-%E2%80%93-your-mistake-my-problem/">post </a>about how others mistakes can often become your problem when corruption lands in your lap.</p>
<p>Muthukkumaran Kaliyamoorthy (<a href="http://sqlserverblogforum.blogspot.com">B</a>) <a href="http://sqlserverblogforum.blogspot.com/2011/06/sql-server-disaster-recovery-plan.html">Goes over</a> the various ways that you can build HA/DR system including Clusters, Mirroring, Replication, etc</p>
<p>Jason E Bacani (<a href="http://key2consulting.com/Blogs/jbacani">B</a> | <a href="http://twitter.com/JEBacaniSQLDude">T</a>) shows once again that <a href="http://key2consulting.com/Blogs/jbacani/2011/06/14/t-sql-tuesday-19-%E2%80%93-disaster-recovery-%E2%80%93-but-sir-we-always-backup-the-database/">backing up a database </a>is important but making sure you are backing up what you think you are backing up is even more important</p>
<p>Bob Pusateri (<a href="http://www.bobpusateri.com">B</a> | <a href="http://twitter.com/sqlbob">T</a>) recounts a <a href="http://www.bobpusateri.com/archive/2011/06/t-sql-tuesday-19-disasters-recovery/">story</a> of a former employer and the resulting problems from having a &#8220;if it isn&#8217;t broken dont fix it attitude&#8221;</p>
<p>Chad Miller (<a href="http://sev17.com">B</a> | <a href="http://twitter.com/cmille19">T</a>) writes about <a href="http://sev17.com/2011/06/t-sql-tuesday-19-disasters-and-recovery/">using powershell </a>and CMS to inventory your SQL Servers</p>
<p>Ryan Adams (<a href="http://www.ryanjadams.com">B</a> | <a href="http://twitter.com/ryanjadams">T</a>) Writes some tips about using and <a href="http://www.ryanjadams.com/2011/06/t-sql-tuesday-mirroring-sswug/">configuring mirroring</a> to prevent disasters</p>
<p>Gail Shaw (<a href="http://sqlinthewild.co.za">B</a> | <a href="http://twitter.com/sqlinthewild">T</a>) does her best to remind us that <a href="http://sqlinthewild.co.za/index.php/2011/06/14/t-sql-tuesday-disasters-dont-just-come-in-huge/">disasters arent just huge events </a>in the world but rather most of them involve smaller more isolated events.  Id agree with her analysis and I live in the bullseye of hurricane country!</p>
<p>Nic Cain (<a href="http://sirsql.net">B</a> | <a href="http://tiwtter.com/sirsql">T</a>) writes about a<a href="http://sirsql.net/blog/2011/6/14/t-sql-tuesday-19what-a-disaster.html"> full scale disaster </a>at a former place of employment.  I see a running joke in these posts about san firmware upgrades being the cause of most DBA disasters.</p>
<p>Robert Pearl (<a href="http://www.sqlservercentral.com/blogs/pearlknows/default.aspx">B</a> | <a href="http://twitter.com/pearlknows">T</a>) shares his <a href="http://www.sqlservercentral.com/blogs/pearlknows/archive/2011/06/14/t-sql-tuesday-19-disasters-amp-recovery.aspx">story of 9/11 </a>and recovering from that disaster.  Things have certainly changed in the years since then.</p>
<p>Amit Banerjee (<a href="http://troubleshootingsql.com">B</a> | <a href="http://twitter.com/banerjeeamit">T</a>) gives us <a href="http://troubleshootingsql.com/2011/06/14/t-sql-tuesday-19-disasters-and-recovery/">10 key points </a>to keep in mind when thinking about disasters and how to best deal with them</p>
<p>Pinal Dave (<a href="http://blog.sqlauthority.com">B</a> | <a href="http://www.twitter.com/pinaldave">T</a>) recounts his <a href="http://blog.sqlauthority.com/2011/06/14/sql-server-first-month-as-dba-trainee-disasters-and-recovery/">early days as a DBA </a>and 4 pieces of wisdom that he learned early on</p>
<p>Steve Jones (<a href="http://voiceofthedba.wordpress.com">B</a> | <a href="http://twitter.com/way0utwest">T</a>) Writes about <a href="http://voiceofthedba.wordpress.com/2011/06/14/t-sql-tuesday-19-disaster-recovery/">small disasters </a>that arent natural disasters.  He&#8217;s right, these types disasters are considerably more likely than a massive natural disaster.</p>
<p>Thomas Rushton (<a href="http://thelonedba.wordpress.com">B</a> | <a href="http://twitter.com/#!/thomasrushton">T</a>) Shared not <a href="http://thelonedba.wordpress.com/2011/06/14/t-sql-tuesday-19-data-disasters/">one</a> but<a href="http://thelonedba.wordpress.com/2011/06/14/t-sql-tuesday-19-dr-all-done-really/"> two </a>posts for this months edition of TSQLTuesda.  He reminds us to test our DR plans and recounts a story of what was likely someone updating every record in a database with the same value.  Which is a common disaster indeed.</p>
<p>Jason Brimhall (<a href="http://jasonbrimhall.info/">B</a> | <a href="http://twitter.com/sqlrnnr">T</a>) Shared a story of <a href="http://jasonbrimhall.info/2011/06/14/t-sql-tuesday-19-%E2%80%93-disasters-recovery/">three personal disasters</a>. included is a good tip about recovering the registered servers in ssms after a reinstall</p>
<p>Nick Haslam (<a href="http://blog.nhaslam.com">B</a> | <a href="http://twitter.com/nhaslam">T</a>) wrote about an <a href="http://blog.nhaslam.com/2011/06/14/t-sql-tuesday-19its-not-always-software-tsql2sday/">experience at a retail organization </a>where a loss of power took out all of the systems.  Seems its often the small things that get overlooked (not that power is small but, often taken for granted)</p>
<p>John Samson (<a href="http://www.johnsansom.com">B</a> | <a href="http://twitter.com/#!/JohnSansom/">T</a>) shared <a href="http://www.johnsansom.com/too-many-disasters-to-choose-from-t-sqltuesday">links to his prior posts </a>about DBA responsibilities in planning for recoveries</p>
<p>Nancy Hidy Wilson (<a href="http://nancyhidywilson.wordpress.com">B </a>| <a href="http://twitter.com/NancyHidyWilson">T) </a>who lives just up the road from me in Houston recounts her own personal story from Hurricane Ike.  I learned I need a chainsaw and a tractor to recover from a hurricane.  Also I was reminded just how far our modern jobs have come in that we can personally experience disaster and move a few hundred miles away and continue to work our day jobs since their systems *should* be designed for uptime!</p>
<p>Thanks again to everyone who participated this month! </p>
<p>Be on the watch for next months host and consider participating if you havent before!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/06/t-sql-tuesday-19-wrapup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Invitation for T-SQL Tuesday #19 &#8211; Disasters &amp; Recovery</title>
		<link>http://www.allenkinsel.com/archive/2011/06/invitation-for-t-sql-tuesday-19-disasters-recovery/</link>
		<comments>http://www.allenkinsel.com/archive/2011/06/invitation-for-t-sql-tuesday-19-disasters-recovery/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 14:22:51 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[Backup and Recovery]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[TSQLTuesday]]></category>
		<category><![CDATA[Backups]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[tsql2sday]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=898</guid>
		<description><![CDATA[Disasters
Its the first week of June and for those of us living along the Gulf and Atlantic coasts of the US, that brings the beginning of hurricane season.  It also means its time for this months installment of T-SQL Tuesday.
This Months Topic
Disaster Recovery.  This topic is very near and dear to me based on the fact that]]></description>
			<content:encoded><![CDATA[<h1>Disasters<a href="http://www.allenkinsel.com/wp-content/uploads/2011/06/TSQL2sDay150x150.jpg"><img class="alignright size-full wp-image-900" title="TSQL2sDay150x150" src="http://www.allenkinsel.com/wp-content/uploads/2011/06/TSQL2sDay150x150.jpg" alt="" width="150" height="150" /></a></h1>
<p>Its the first week of June and for those of us living along the Gulf and Atlantic coasts of the US, that brings the beginning of <a href="http://en.wikipedia.org/wiki/2011_Atlantic_hurricane_season">hurricane season</a>.  It also means its time for this months installment of T-SQL Tuesday.</p>
<h2>This Months Topic</h2>
<div id="attachment_902" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.allenkinsel.com/wp-content/uploads/2011/06/IMG_0010.jpg"><img class="size-medium wp-image-902  " title="Hurricane Ike dead ahead" src="http://www.allenkinsel.com/wp-content/uploads/2011/06/IMG_0010-300x225.jpg" alt="Hurricane Ike dead ahead" width="300" height="225" /></a><p class="wp-caption-text">There goes your weekend/month</p></div>
<p>Disaster Recovery.  This topic is very near and dear to me based on the fact that I live on a barrier island that was the site to the <a href="http://en.wikipedia.org/wiki/1900_Galveston_hurricane">deadliest natural disaster</a> in US history and more recently destroyed by the <a href="http://en.wikipedia.org/wiki/Hurricane_Ike">third costliest hurricane </a>in history.  Needless to say preparing for disasters is nearly instinctive to me which might explain why I&#8217;m a DBA but I digress.  Anything you&#8217;d like to blog about related to preparing for or recovering from a disaster would be fair game, have a great tip you use to keep backups and recovers running smoothly, a horrific story of recovery gone wrong? or anything else related to keeping your systems online during calamity.  We want to hear it!</p>
<div id="attachment_906" class="wp-caption alignright" style="width: 235px"><a href="http://www.allenkinsel.com/wp-content/uploads/2011/06/IMG_0015.jpg"><img class="size-medium wp-image-906 " title="Ike Redux" src="http://www.allenkinsel.com/wp-content/uploads/2011/06/IMG_0015-225x300.jpg" alt="My street a month after Hurricane Ike" width="225" height="300" /></a><p class="wp-caption-text">My street a month after Hurricane Ike</p></div>
<h2>T-SQL Tuesday info</h2>
<p>Originally an idea <a href="http://sqlblog.com/blogs/adam_machanic/archive/2009/11/30/invitation-to-participate-in-t-sql-tuesday-001-date-time-tricks.aspx">dreamed </a>up by Adam Machanic (<a href="http://sqlblog.com/blogs/adam_machanic/">Blog</a>|<a href="http://twitter.com/adammachanic">Twitter</a>), it has become a monthly blog party where the host picks a topic and encourages anyone to write a post on that topic then a day or 3 later produces a roundup post of all the different perspectives from the community.</p>
<h2>Rules</h2>
<ul>
<li>Your post must be published between 00:00 GMT Tuesday June 14, 2011, and 00:00 GMT Wednesday June 15, 2011</li>
<li>Your post must contain the T-SQL Tuesday logo from above and the image should link back to this blog post.</li>
<li>Trackbacks should work, but if you don&#8217;t see one please link to your post in the comments section below so everyone can see your work</li>
</ul>
<h2>Nice to haves!</h2>
<ul>
<li>include a reference to T-SQL Tuesday in the title of your post</li>
<li>tweet about your post using the hash tag <a href="http://twitter.com/#!/search/%23tsql2sday">#TSQL2sDay</a></li>
<li>consider hosting T-SQL Tuesday yourself. Adam Machanic keeps the list, if he let me do it you&#8217;re bound to qualify!</li>
</ul>
<p>Check back in a few days to see the roundup post of all the great stories your peers shared</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/06/invitation-for-t-sql-tuesday-19-disasters-recovery/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>99 problems and the disk aint one</title>
		<link>http://www.allenkinsel.com/archive/2011/05/99-problems-and-the-disk-aint-one/</link>
		<comments>http://www.allenkinsel.com/archive/2011/05/99-problems-and-the-disk-aint-one/#comments</comments>
		<pubDate>Mon, 02 May 2011 14:27:36 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[Meme]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=875</guid>
		<description><![CDATA[Its Meme Monday again and this time Tom has picked an interesting topic.
How many problems do we all see in our shops that arent related to disks?  Since disk related issues would normally be my #1-10 I guess Ill have to start at #11
.
11. ESX misconfigurations
12. Old DBMS Version requirements from vendors
13. Bad DB design
14.]]></description>
			<content:encoded><![CDATA[<p>Its Meme Monday again and this time Tom has picked an <a href="http://thomaslarock.com/2011/04/meme-monday-will-return/">interesting topic</a>.</p>
<p>How many problems do we all see in our shops that arent related to disks?  Since disk related issues would normally be my #1-10 I guess Ill have to start at #11</p>
<p>.<br />
11. ESX misconfigurations</p>
<p>12. Old DBMS Version requirements from vendors</p>
<p>13. Bad DB design</p>
<p>14. Active Directory</p>
<p>15. Network connectivity/configuration</p>
<p>16. JAVA</p>
<p>17. Security architecture &amp; design</p>
<p>18. Vendor Code&#8230;</p>
<p>19. Overly complex solutions to satisfy edge cases</p>
<p>This is my list of 9, What are yours?</p>
<p>Ill go out on a limb and tag 3 people</p>
<p><a href="http://sqlservertimes2.com">Lori Edwards</a>, you havent written a blog post lately, consider this your invitation</p>
<p><a href="http://sqlasylum.wordpress.com/">Pat Wright</a></p>
<p><a href="http://sqlblog.com/blogs/andy_leonard/default.aspx">Andy Leonard</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/05/99-problems-and-the-disk-aint-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How valuable are good employees</title>
		<link>http://www.allenkinsel.com/archive/2011/03/how-valuable-are-good-employees/</link>
		<comments>http://www.allenkinsel.com/archive/2011/03/how-valuable-are-good-employees/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 16:09:43 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[Management]]></category>
		<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[Teams]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=818</guid>
		<description><![CDATA[
Every successful business knows that its employees are its biggest asset.
As driven employees, we strive to be members of highly functioning teams.  Company management wants a highly effective team, everyone would seem to want the same thing yet it can be hard to achieve for a number of reasons.  Highly effective employees on great teams]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/83541202@N00/375257407"><img class="alignright size-medium wp-image-820" title="Worth a million?" src="http://www.allenkinsel.com/wp-content/uploads/2011/03/million-300x200.jpg" alt="" width="300" height="200" /></a></p>
<h3>Every successful business knows that its employees are its biggest asset.</h3>
<p>As driven employees, we strive to be members of highly functioning teams.  Company management wants a highly effective team, everyone would seem to want the same thing yet it can be hard to achieve for a number of reasons.  Highly effective employees on great teams are the fundamental bedrock of all successful businesses.  But, what is the difference between an average team and an exceptional team?  A interesting discussion I had today about these differences prompted this post.</p>
<h3>Are you an above average member of your team?</h3>
<p>What makes someone a great technical team member, Is it deep knowledge of a technical subject?  Business application of said technology?  Ability to schmooze the boss?  Any of these things can lead a person to be known as a highly effective employee.  likewise inability to execute on any of these things (plus a host of others!) can lead someone to  be an average performer or worse an under performer.</p>
<h3>What are you worth to your team?</h3>
<p>Would you consider yourself 10% above average? 20%? , 50%?.  I&#8217;ve asked around and when most people are asked their self assessments are that they are at least 20% above average.  With that thought, as a business manager would you consider a 1% above average (what is average anyway ????) employee desirable?</p>
<h3>Consider the math</h3>
<p>As a team member at a reasonable sized organization lets say you are responsible for 50 Million$ in information (data for the DBA&#8217;s reading this).  If you are able to perform at a 1% higher level than average, you should be able to manage about 500K more than an average team member.  If somehow you managed the herculean task of being 20% better than average you&#8217;d be able to manage 10 Million$ more.  Likewise If you have a team member who is performing at a lower level , say 1% below average they&#8217;d only be able to manage 49.5 Million$.  20% below average and well, lets just say its a bad day to be responsible for 40 Million$.  If you extrapolate those numbers further and compound them yearly for a few years the 1% better employee Vs the 1% underperformer would look something like this</p>
<p>The 1% high performer nets $51,515,050</p>
<p>while the 1% underperforming employee nets $48,514,950</p>
<p>Thats a 3 Million dollar difference for a 1% above average performance. (not bad!!)</p>
<h3>End result is the same</h3>
<p>The next time you&#8217;re debating with your boss about the value you bring to your team, it can be helpful to point out the math especially if you can make a reasonable leap to huge numbers like billions of dollars in assets and 2% above average Vs 1% below.  1 great employee who brings tons to the table and say works at a 5% above average range is potentially worth more than the entire rest of an under-performing team.  Of course, asking your boss for a 500K raise might not go over well either but If you are lucky enough to be able to tie your work product to actual company revenue, this is a great way to show the leaders in your organization how important it is to hire good people, even if they are <strong>ONLY</strong> better than average by 1%</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/03/how-valuable-are-good-employees/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The 3 most important words for a DBA</title>
		<link>http://www.allenkinsel.com/archive/2011/02/the-3-most-important-words-for-a-dba/</link>
		<comments>http://www.allenkinsel.com/archive/2011/02/the-3-most-important-words-for-a-dba/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 15:05:09 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[Important things]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=653</guid>
		<description><![CDATA[Occasionally I&#8217;m asked what the most important thing for a DBA to know is.  It seems some people want to know what 1 thing to focus on in order to be successful long term as a DBA.  I&#8217;ve pondered this question for quite a long time and I&#8217;ve given various answers over the years.
Reality intervenes
Ive]]></description>
			<content:encoded><![CDATA[<p>Occasionally I&#8217;m asked what the most important thing for a DBA to know is.  It seems some people want to know what 1 thing to focus on in order to be successful long term as a DBA.  I&#8217;ve pondered this question for quite a long time and I&#8217;ve given various answers over the years.</p>
<h3>Reality intervenes</h3>
<p>Ive come to the conclusion that there really is no one special thing or &#8220;skill&#8221; that its important for a DBA to know.  Sure, there are lots of qualities that tend to make a successful DBA.  Things like attention to detail, thirst for knowledge, and an uncanny love of BACON&#8230;  The problem is as huge as the SQL Server product is becoming it is also becoming increasingly difficult to be an expert in everything.  I am actually of the opinion that it is impossible to be an expert in everything SQL Server.</p>
<h3>Knowing what you dont know</h3>
<p>The most important thing for a DBA to know can be summed up in 3 simple words &#8221; I Dont Know&#8221;  Why is that important?  Because, knowing what you don&#8217;t know, and being able to admit it to those around you is by far the most valuable skill that you can poses as a DBA at any skill level.</p>
<p>When in doubt its always good to remember that its ok to say &#8220;I don&#8217;t know&#8221; The Corollary to this statement is of course &#8220;Ill find out, or find someone who does know&#8221;.  Ive seen many small issues blow up into large problems over the years because someone didn&#8217;t really understand what was going on and they were afraid to let their coworkers (or boss) know that they don&#8217;t understand.  In many cases if we&#8217;ll just learn to say &#8220;I don&#8217;t know&#8221; some further pain can easily be avoided.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/02/the-3-most-important-words-for-a-dba/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Database Automagic</title>
		<link>http://www.allenkinsel.com/archive/2011/02/database-automagic/</link>
		<comments>http://www.allenkinsel.com/archive/2011/02/database-automagic/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 17:11:30 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[Bits N Bytes]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[TSQLTuesday]]></category>
		<category><![CDATA[BitsNBytes]]></category>
		<category><![CDATA[tsql2sday]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=737</guid>
		<description><![CDATA[This months TSQL Tuesday is hosted by a good friend Pat right over at  SQL Asylum
For this months entry I decided to keep it short and sweet, following in my Bits N Bytes theme.
The Meta Script
In the true sense of the word automation, this really doesn&#8217;t fit but, in the terms of quickly getting something]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="tsql2sday" src="http://sqlasylum.files.wordpress.com/2011/01/tsql2sday.jpg" alt="" width="150" height="150" />This months TSQL Tuesday is hosted by a good friend Pat right over at <a href="http://sqlasylum.wordpress.com/2011/02/01/invitation-to-t-sql-tuesday-15-automation-in-sql-server/"> SQL Asylum</a></p>
<p>For this months entry I decided to keep it short and sweet, following in my Bits N Bytes theme.</p>
<h3>The Meta Script</h3>
<p>In the true sense of the word automation, this really doesn&#8217;t fit but, in the terms of quickly getting something done that would otherwise be a mundane repetitive task, this can save a world of time.</p>
<p>Lets say we have a list of objects in the Sales Schema and we have a request to grant Select and Insert access to a user for those objects.  There are two approaches, 1 is to grant select and insert to the actual schema like this</p>
<p><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">GRANT</span></span></span><span style="color: #0000ff; font-size: x-small;"> </span></span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">SELECT, INSERT</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">ON</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">SCHEMA</span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">::</span></span><span style="font-size: x-small;">Sales </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">TO</span></span><span style="font-size: x-small;"> BusinessUser</span><span style="font-size: x-small;"> </span></p>
<p>However you might decide that you only want to grant direct SELECT and INSERT on the tables that exist in the DBO Schema today not those tables which may be created in the future (auditors love to make us do this)</p>
<p>A simple way to automate granting these rights is by writing a script that writes a script like so</p>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">SELECT</span></span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="color: #ff0000; font-size: x-small;"><span style="color: #ff0000; font-size: x-small;">&#8216;GRANT SELECT, INSERT ON &#8216;</span></span><span style="font-size: x-small;"> </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">+</span></span><span style="font-size: x-small;"> sch</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="font-size: x-small;">name </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">+</span></span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;"><span style="color: #ff0000; font-size: x-small;">&#8216;.&#8217;</span></span><span style="font-size: x-small;"> </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">+</span></span><span style="font-size: x-small;"> obj</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="font-size: x-small;">name </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">+</span></span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;"><span style="color: #ff0000; font-size: x-small;">&#8216; TO BusinessUser&#8217;</span></span></span></span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"> </span></span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="font-size: x-small;"><span style="font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">  FROM</span></span><span style="font-size: x-small;"> </span><span style="color: #008000; font-size: x-small;"><span style="color: #008000; font-size: x-small;">sys</span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="color: #008000; font-size: x-small;"><span style="color: #008000; font-size: x-small;">all_objects</span></span><span style="font-size: x-small;"> obj </span></span></span></span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">JOIN</span></span><span style="font-size: x-small;"> </span><span style="color: #008000; font-size: x-small;"><span style="color: #008000; font-size: x-small;">sys</span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="color: #008000; font-size: x-small;"><span style="color: #008000; font-size: x-small;">schemas</span></span><span style="font-size: x-small;"> sch</span></div>
<div><span style="font-size: x-small;"><span style="font-size: x-small;"> </span></span></div>
<p><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">    ON</span></span><span style="font-size: x-small;"> obj</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="color: #ff00ff; font-size: x-small;"><span style="color: #ff00ff; font-size: x-small;">schema_id</span></span><span style="font-size: x-small;"> </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">=</span></span><span style="font-size: x-small;"> sch</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="color: #ff00ff; font-size: x-small;"><span style="color: #ff00ff; font-size: x-small;">schema_id</span></span></p>
<div><span style="font-size: x-small;"><span style="font-size: x-small;"> </span></span><span style="font-size: x-small;"><span style="font-size: x-small;"> </span></span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">WHERE</span></span><span style="font-size: x-small;"> sch</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="font-size: x-small;">name </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">=</span></span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;"><span style="color: #ff0000; font-size: x-small;">&#8216;Sales&#8217;</span></span><br />
<span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">  and</span></span><span style="font-size: x-small;"> obj</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">.</span></span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">type</span></span><span style="font-size: x-small;"> </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">=</span></span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;"><span style="color: #ff0000; font-size: x-small;">&#8216;U&#8217;</span></span></div>
<p><br class="blank" /><br />
This should give you a result set that looks something like the following:</p>
<p><span style="color: #0000ff;">GRANT SELECT, INSERT ON</span> Sales.People <span style="color: #0000ff;">TO</span> BusinessUser<br />
<span style="color: #0000ff;">GRANT SELECT, INSERT ON</span> Sales.Sales <span style="color: #0000ff;">TO</span> BusinessUser</p>
<p>At this point, run the output in a separate command window and viola you&#8217;ve automated that grant of permissions</p>
<p>This may not be true &#8220;automation&#8221; in the sense that Pat was looking for but, perfecting the ability to write scripts that write scripts is a huge timesaver</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/02/database-automagic/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A tall tale of SQL database corruption</title>
		<link>http://www.allenkinsel.com/archive/2011/02/a-tall-tale-of-sql-database-corruption/</link>
		<comments>http://www.allenkinsel.com/archive/2011/02/a-tall-tale-of-sql-database-corruption/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 14:22:47 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[Backup and Recovery]]></category>
		<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[Backups]]></category>
		<category><![CDATA[Recovery]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=642</guid>
		<description><![CDATA[This corruption story begins like many.  Somebody in a server room far far away decided to make a change to a VMware guest machine and that little change rippled through our poor server like a lady Gaga Meat Dress through the VMA’s.  Needless to say, it wasnt pretty.  The full set of events may never]]></description>
			<content:encoded><![CDATA[<p>This corruption story begins like many.  Somebody in a server room far far away decided to make a change to a VMware guest machine and that little change rippled through our poor server like a lady Gaga <a href="http://www.youtube.com/watch?v=CsLmRFOZFMQ" target="_blank">Meat Dress</a> through the VMA’s.  Needless to say, it wasnt pretty.  The full set of events may never be known by me but it appeared as though our guest server ran out of disk space on the OS and some form of recovery was done.<a href="http://www.flickr.com/photos/sharynmorrow/5961475/sizes/o/in/photostream/"><img class="alignright size-medium wp-image-649" title="Shattered into a million pieces" src="http://www.allenkinsel.com/wp-content/uploads/2011/01/lego-300x225.jpg" alt="Shattered into a million pieces" width="232" height="153" /></a></p>
<p>What we started with was a sql 2005 sp3 server where 1 of the drives was apparently corrupted, So 2 SQL instances wouldnt start.  They were both erroring with the message :</p>
<p>Error: 9003, Severity: 20, State: 1.<br />
The log scan number (23:5736:37) passed to log scan in database &#8216;master&#8217; is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error occurred during replication, re-create the publication. Otherwise, restore from backup if the problem results in a failure during startup.<br />
<br class="blank" /></p>
<p>Using trace flag 3608 and startup parameters -c -m I set about to do a normal &#8220;disaster&#8221; recovery of our server</p>
<p>After rebuilding the master database, everything came online successfully.  Then master was recovered from the previous backup.  Once master was online I started getting the very same error message about the model database</p>
<p>Error: 9003, Severity: 20, State: 1.</p>
<p>The LSN (11:999:1) passed to log scan in database &#8216;model&#8217; is invalid<br />
<br class="blank" /></p>
<p>This would prove to be a trying error!  it took about several iterations and quite a time to figure out exactly what was going on.<br />
<br class="blank" /></p>
<p>On this server after initial setup we had moved the system databases from the install drive to seperate drives for log and data.  When rebuilding master, the system db’s wind up back in the default directories but, after recovering master, the databases are pointed back to the original locations.</p>
<p>Once we got the server started the log scan error message for model showed up so, I began what I thought would be a normal restore of the model database.  Unfortunately, there was no way for model to be restored.  During the restore command, I got alternating messages that the model database log file was corrupted</p>
<p><br class="blank" /></p>
<p>Error: 3283, Severity: 16, State: 1.</p>
<p>The file &#8220;modellog&#8221; failed to initialize correctly. Examine the error logs for more detail</p>
<p>The Error 3283 Would be followed by</p>
<p>the database &#8216;model&#8217; is marked RESTORING and is in a state that does not allow recovery to be run.<br />
<br class="blank" /></p>
<p>After trying various iterations of deleting the existing model log &amp; database files, copying in the newly created ones and running restores, nothing was working.  I began to think the disks were actually having problems, or the backup was bad.  After verifying both the backup and the disk config I was left with only a hail mary –&gt; sp_detach_db</p>
<p>After detaching model, I copied in the newly created model files (from the rebuild of master) and ran sp_attach_db on them.  Once the Model database was attached the instance started successfully!</p>
<p>After the instance started model was restored from the same backup and the instance restarted.  Finally, once the instance came online, it was a standard restore of all the user databases.<br />
<br class="blank" /></p>
<p>Im not sure what about the logscan error in model caused the errors I saw, but, both instances behaved exactly the same.  I had to detach and reattach a blank model to make the other instance work as well.<br />
<br class="blank" /></p>
<p>After going through this, I went back and tried to reproduce the problems by intentionally corrupting model and its transaction log in various ways.  Every corruption I could cause in model behaved as I expected and a simple restore statement worked.  Im still not sure WHY this happened but, hopefully it wont happen again and if it does there wont be so much testing to figure out how to get model online</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/02/a-tall-tale-of-sql-database-corruption/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Changing the owner of nearly anything in SQL Server</title>
		<link>http://www.allenkinsel.com/archive/2011/01/changing-the-owner-of-nearly-anything/</link>
		<comments>http://www.allenkinsel.com/archive/2011/01/changing-the-owner-of-nearly-anything/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 14:00:00 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[Bits N Bytes]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[BitsNBytes]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/archive/2011/01/changing-the-owner-of-nearly-anything/</guid>
		<description><![CDATA[The other day we were going through some old scripts and had a huge discussion about changing object ownership in SQL.  Forever the only answers were to recreate the objects or use the stored procedures: sp_changeobjectowner or sp_changedbowner.  Alternatively at times there were those of us who used some other undisclosed hack of system tables]]></description>
			<content:encoded><![CDATA[<p>The other day we were going through some old scripts and had a huge discussion about changing object ownership in SQL.  Forever the only answers were to recreate the objects or use the stored procedures: sp_changeobjectowner or sp_changedbowner.  <span style="text-decoration: line-through;">Alternatively at times there were those of us who used some other undisclosed hack of system tables but, I’ve never done anything like that…</span></p>
<p><span style="text-decoration: line-through;"><br />
</span></p>
<p>Since SQL 2005 Alter Authorization has been the right way to change ownership of nearly anything</p>
<p>This is the most common use of alter authorization but there are <a href="http://msdn.microsoft.com/en-us/library/ms187359.aspx" target="_blank">many more.</a></p>
<p>sp_changeobjectowner would look like this</p>
<pre>sp_changeobjectowner 'Products.Description','AllenK'
</pre>
<p>While the updated syntax would look like this</p>
<pre>ALTER AUTHORIZATION ON OBJECT::[Products].[Description] TO [AllenK]</pre>
<p>What really brought this post about was because I was working with certificates recently and at the time I needed to change who the owner and I just exported/imported &amp; recreated them.  It was easy and what I knew would work.  After looking through the syntax for alter authorization I realized I could &amp; probably should have done it this way.  I guess old habits die hard.</p>
<pre>ALTER AUTHORIZATION ON CERTIFICATE::[MYCERTIFICATE] TO [CERTOWNER]</pre>
<p>Some out there might question why I&#8217;m rehashing syntax changes that happened nearly 5 years ago, The reality is that even in 2011 a lot of the installations of SQL Server I look at are still 2005 and many of the people I run into still use old ways of doing things, this is for you (and me)!</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 140px; width: 1px; height: 1px; overflow: hidden;">
<pre>ALTER AUTHORIZATION ON OBJECT::[Products].[Description] TO [AllenK]
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/01/changing-the-owner-of-nearly-anything/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

