<?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; TSQLTuesday</title>
	<atom:link href="http://www.allenkinsel.com/Topics/sql-server/tsqltuesday/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.allenkinsel.com</link>
	<description>SQL Server, PASS, and other data mishaps</description>
	<lastBuildDate>Mon, 07 Jan 2013 15:27:00 +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>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>2</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>40</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>This year I resolve to&#8230;</title>
		<link>http://www.allenkinsel.com/archive/2011/01/this-year-i-resolve-to/</link>
		<comments>http://www.allenkinsel.com/archive/2011/01/this-year-i-resolve-to/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 14:04:00 +0000</pubDate>
		<dc:creator>Allen Kinsel</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Syndicated]]></category>
		<category><![CDATA[TSQLTuesday]]></category>
		<category><![CDATA[goals]]></category>
		<category><![CDATA[SQLPASS]]></category>
		<category><![CDATA[tsql2sday]]></category>

		<guid isPermaLink="false">http://www.allenkinsel.com/?p=626</guid>
		<description><![CDATA[
If you hadn&#8217;t guessed, today’s post is part of this months TSQL Tuesday.  This is an interesting topic for me since as a matter of principle I usually refuse to make resolutions and the like around the start of the new year.  I like to set goals, and work towards those goals but, I think]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.midnightdba.com/Jen/wp-content/uploads/2011/01/tsql2sday.jpg" alt="" /></p>
<p>If you hadn&#8217;t guessed, today’s post is part of this months <a href="http://www.midnightdba.com/Jen/2011/01/tsql-tuesday-014/">TSQL Tuesday</a>.  This is an interesting topic for me since as a matter of principle I usually refuse to make resolutions and the like around the start of the new year.  I like to set goals, and work towards those goals but, I think “resolving” to do something has this nagging way of never turning out how I’d like.  It probably has something to do with the fact that I track goals but, typically only think about resolutions at a point in time.</p>
<p>So, this year Ill resolve to document a few of my goals for the year.</p>
<p>This year I only have a few professional goals.  Actually, quite a few less than usual.  I decided to trim down my professional goals this year to only a couple since they are quite large and very open ended.</p>
<ol>
<li>Id like to make PASS as responsive as possible to the needs of our SQL Community.  This is simply to say that I plan to do what I feel I was elected to do.  Of all the directors I am as well positioned as anyone to make real change that can be seen to the average user of SQL Server.  I will need lots of help to make this happen, and I have no problem asking for that help (watch this space SOON for details)</li>
<li>I want to learn to be a better “manager/leader”  It takes a different set of skills to lead people than it does to be a DBA and do technical work.  I love the technical work, actually more than the management stuff but, my current roles are requiring more leadership and less technical.  I need to do better with the details of this and learn to inspire greatness in my teammates.</li>
</ol>
<p>That&#8217;s it, 2 whole goals for the year, not much by count but, by effort I’d say these might be the some of the loftiest goals I’ve set in a long time…</p>
]]></content:encoded>
			<wfw:commentRss>http://www.allenkinsel.com/archive/2011/01/this-year-i-resolve-to/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
