<?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>JohnSterrett.com &#187; SQLServerPedia Syndication</title>
	<atom:link href="http://johnsterrett.com/category/sqlserverpedia-syndication/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnsterrett.com</link>
	<description>This is a one stop shop for free technical blogs about Database Managment and Software Development.  I will also include posts on whats going on with my personal life too...</description>
	<lastBuildDate>Thu, 26 Aug 2010 14:00:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>SQL PASS Summit 2010 on a Budget</title>
		<link>http://johnsterrett.com/2010/08/26/sql-pass-summit2010-on-a-budget/</link>
		<comments>http://johnsterrett.com/2010/08/26/sql-pass-summit2010-on-a-budget/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 14:00:22 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[confio]]></category>
		<category><![CDATA[idera]]></category>
		<category><![CDATA[mssqltips]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sqlpass]]></category>
		<category><![CDATA[summit 2010]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/?p=342</guid>
		<description><![CDATA[The following is some information I would like to share with the community about how I plan to travel to Seattle for the SQL Server Pass Summit.  Please take my information with a grain of salt because this is the first time I am attending.  Everything below comes from research and tweets. If you are [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F08%2F26%2Fsql-pass-summit2010-on-a-budget%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F08%2F26%2Fsql-pass-summit2010-on-a-budget%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>The following is some information I would like to share with the community about how I plan to travel to Seattle for the SQL Server Pass Summit.  Please take my information with a grain of salt because this is the first time I am attending.  Everything below comes from research and tweets. If you are a regular please<a href="http://johnsterrett.com/2010/08/26/sql-pass-summit2010-on-a-budget/#respond"> leave comments so others can see your travel tips.</a></p>
<h2>Summit 2010</h2>
<div class="mceTemp">
<dl class="wp-caption alignright" style="width: 260px;">
<dt class="wp-caption-dt"><a href="http://www.sqlpass.org/summit/na2010/"><img style="display: inline; margin-left: 0px; margin-right: 0px;" title="PASS%20Summit%20Banner%20300x300" src="http://johnsterrett.com/wp-content/uploads/2010/08/PASS20Summit20Banner20300x300_thumb.gif" alt="PASS%20Summit%20Banner%20300x300" width="260" height="260" align="left" /></a> </dt>
<dd class="wp-caption-dd">Can we fast forward to November? </dd>
</dl>
<p>The SQL PASS Summit 2010 is the best opportunity for SQL Server DBA&#8217;s to connect, share and learn. Your first obstacle towards getting into the Summit is to well <a href="http://www.sqlpass.org/summit/na2010/Registration.aspx">pay for general admission to the summit.</a> You basically have two options here, either you pay the general admission fee (this is what I am doing this year) or you can <a href="http://facility9.com/2009/08/25/be-a-cheapass-at-pass">get someone to sponsor you</a>. A great option here would be your employer. Your employer also isn&#8217;t your only option for sponsorship. Speaking of getting someone else to sponsor you <a href="http://www.mssqltips.com/pass_giveaway_entry.asp">MSSQLTIPS and Idera is currently looking to send someone to PASS</a>.  Give it a shot it could be you!</p>
<p>If you are paying for yourself you will want to pay ASAP because PASS has a sliding scale.  Just like many other conferences there is a price before sessions are announced and different prices as you get closer to the event.  You want to avoid paying at the door because the price is usually a lot more.</p>
<p>The following are some links that will help you save some money on attending the 2010 Summit.</p>
<ul>
<li><a href="http://www.sqlpass.org/summit/na2010/AboutSummit/News/PrePostConPowerBundle.aspx">Pre/Post Con Bundle</a> (Hurry expires on August 30th)</li>
<li><a href="http://www.sqlservercentral.com/articles/PASS+Summit/69662/">SQLServerCentral Discount Code and Free Entry to Casino Night</a></li>
<li><a href="http://www.sqlpass.org/summit/na2010/Registration.aspx">PASS Summit registration and dates of price changes</a></li>
</ul>
</div>
<h2>How do I get there?</h2>
<p>How you get to the PASS Summit will depend on your location and its distance to Seattle.  I  live in Wheeling, WV which is an easy hour drive to Pittsburgh so I will be flying.  If you are also flying you might want to checkout <a href="http://bing.com">bing.com</a> and setup email alerts to track the change in flight prices.  At this time I see that there are round-trip flights under $300 from Pittsburgh.</p>
<p>In order to travel through the Seattle Metro area check out the public transportation system.  It looks like they have bus, and a monorail.  <a href="http://www.soundtransit.org/Riding-Sound-Transit/Fares-and-Passes/Central-Link-Light-Rail.xml">The Seattle Center Monorail can take you from the airport to downtown for $5.00 round-trip.</a></p>
<h2>Where Should I stay?</h2>
<p>The PASS website recommends the following two hotels.</p>
<ul>
<li><a href="http://www.starwoodhotels.com/westin/property/overview/index.html?propertyID=1055&amp;EM=VTY_WI_seattle_1055_overview_SEA">The Weston Hotel</a> ($179.00 per night)</li>
<li><a href="http://www.starwoodhotels.com/sheraton/property/overview/index.html?propertyID=460">Sheraton Seattle Hotel &amp; Towers</a> ( $189 per night) </li>
</ul>
<p>Looking at bing.com and  traveladvisor.com I found a few hotels within a miles of the convention center under $100 per night.  If you are trying to stretch your money I would recommend checking them out.</p>
<ul>
<li><a href="http://www.bing.com/travel/hotel/hotelSearch?form=FORMTRVLGENERIC&amp;q=hotels+in+Seattle%2C+WA+leave+11%2F08%2F2010+return+11%2F12%2F2010+adults%3A2+rooms%3A1&amp;stoc=0&amp;datelimit=08%2F25%2F2010&amp;destPortText1=Seattle%2C+WA&amp;e=SEATTLE_WA_US&amp;cim=11%2F08%2F2010&amp;com=11%2F12%2F2010&amp;a=2&amp;r=1&amp;bah=true#">Roosevelt Hotel</a></li>
<li><a href="http://www.bing.com/travel/hotel/hotelSearch?form=FORMTRVLGENERIC&amp;q=hotels+in+Seattle%2C+WA+leave+11%2F08%2F2010+return+11%2F12%2F2010+adults%3A2+rooms%3A1&amp;stoc=0&amp;datelimit=08%2F25%2F2010&amp;destPortText1=Seattle%2C+WA&amp;e=SEATTLE_WA_US&amp;cim=11%2F08%2F2010&amp;com=11%2F12%2F2010&amp;a=2&amp;r=1&amp;bah=true#">Warwick Hotel Seattle</a></li>
<li><a href="http://www.bing.com/travel/hotel/hotelSearch?form=FORMTRVLGENERIC&amp;q=hotels+in+Seattle%2C+WA+leave+11%2F08%2F2010+return+11%2F12%2F2010+adults%3A2+rooms%3A1&amp;stoc=0&amp;datelimit=08%2F25%2F2010&amp;destPortText1=Seattle%2C+WA&amp;e=SEATTLE_WA_US&amp;cim=11%2F08%2F2010&amp;com=11%2F12%2F2010&amp;a=2&amp;r=1&amp;bah=true#">Sixth Avenue Inn</a></li>
<li><a href="http://www.bing.com/travel/hotel/hotelSearch?form=FORMTRVLGENERIC&amp;q=hotels+in+Seattle%2C+WA+leave+11%2F08%2F2010+return+11%2F12%2F2010+adults%3A2+rooms%3A1&amp;stoc=0&amp;datelimit=08%2F25%2F2010&amp;destPortText1=Seattle%2C+WA&amp;e=SEATTLE_WA_US&amp;cim=11%2F08%2F2010&amp;com=11%2F12%2F2010&amp;a=2&amp;r=1&amp;bah=true#">The Inn at Virginia Mason</a></li>
</ul>
<p>Do you have any friends that are attending PASS? If so, you might want to recommend sharing a room. This is a great way for you to split the costs of a hotel room.</p>
<h2>Where should I eat?</h2>
<p>If you are attending the Summit there is good news. <strong>Breakfast and Lunch is included daily</strong>. This means you will only have to worry about dinner.   There will also be some evening events where you might be able to snag a bite to eat.  On Monday night you can attend the <strong>PASS Summit 2010 Welcome Reception.</strong>  On Tuesday night you can also attend the <strong>Exhibitor Reception. </strong></p>
<p>Another thought towards saving some $$ on dinner is to talk it up with the vendors.  They are there to get to know you and see if their products can solve your problems.  If your team has a budget for SQL tools (I really hope your team does) I bet you could convince a vendor to take you out to dinner.  Even if you don’t have a budget for SQL Tools I bet you could convince some vendors to take you out to dinner.  Remember most people in sales try to build relationships before they sell you on a product or idea.</p>
<h2>Can you buy me a drink?</h2>
<p>I never really was a big fan of beer and alcohol until I started my career in Information Technology (we will leave the company name out of this story). There were several internal functions to attend for networking and they all had beer.  I quickly noticed that all the bigwigs always had a beer in their hands. Being fresh out of college I followed suite and soon fell in love with beer (a trip with the wife to tour Samuel Adams in Boston also helped).</p>
<p>Anyways back to saving money. If you like to grab a drink (I defiantly fall into this category) it looks like its cheaper to go away from the convention center.</p>
<p>According to <a href="http://twitter.com/SQLDBA">@SQLDBA</a> its cheaper to go to the <a href="http://www.taphousegrill.com/happyhour.html">Tap House</a> across the street from the convention center. If you also like to sample local beer the <a href="http://www.rockbottom.com/seattle">Rock Bottom Brewery</a> is another  recommended place within walking distance from downtown.</p>
<h2>What are your travel plans?</h2>
<p>PASS Summit vets what am I missing? How else can people save some $$ on their quest to their first Summit conference? Let us know we are all looking forward to your recommendations.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/08/26/sql-pass-summit2010-on-a-budget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recap: PGH.NET August 2010 Meeting</title>
		<link>http://johnsterrett.com/2010/08/12/recap-pgh-net-august-2010-meeting/</link>
		<comments>http://johnsterrett.com/2010/08/12/recap-pgh-net-august-2010-meeting/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 13:00:07 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[PGH.NET]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[Table Value Parameters]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/?p=292</guid>
		<description><![CDATA[On August 10th 2010 I attended and presented at the PGH.NET User Group meeting named &#8220;5 Guys with Code.&#8221;  According to one of the PGH.NET leaders tweet it looks like the headcount was 60+ The following are some thoughts and highlights from the presentations. Presentations   John Sterrett (Blog &#124; Twitter) &#8211; Table Value Parameters [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F08%2F12%2Frecap-pgh-net-august-2010-meeting%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F08%2F12%2Frecap-pgh-net-august-2010-meeting%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>On August 10th 2010 I attended and presented at the <a href="http://codecamppgh.com/default.aspx">PGH.NET User Group</a> meeting named &#8220;5 Guys with Code.&#8221;  According to one of the PGH.NET leaders tweet it looks like the headcount was 60+</p>
<p><a href="http://johnsterrett.com/wp-content/uploads/2010/08/TwitterDavidHoersterbrittrkingAwesomemtgla.png"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="Twitter  David Hoerster @brittrking Awesome mtg la .." src="http://johnsterrett.com/wp-content/uploads/2010/08/TwitterDavidHoersterbrittrkingAwesomemtgla.._thumb.png" border="0" alt="Twitter  David Hoerster @brittrking Awesome mtg la .." width="244" height="118" /></a></p>
<p>The following are some thoughts and highlights from the presentations.</p>
<h3>Presentations</h3>
<ul>
<li> 
<ul>
<li><strong>John Sterrett (<a href="http://johnsterrett.com/">Blog</a> | <a href="http://twitter.com/johnsterrett">Twitter</a>) &#8211; Table Value Parameters with SQL Server 2008 and Microsoft .NET</strong>  </li>
</ul>
<ul>
<li> 
<ul>
<li>Download sample code and presentation <a href="http://johnsterrett.com/presentations/">here</a>.</li>
<li>Download <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=fffaad6a-0153-4d41-b289-a3ed1d637c0d">SQL Server 2008 R2 Developer Toolkit</a></li>
<li>Download <a href="http://www.microsoft.com/downloads/details.aspx?familyid=E9C68E1B-1E0E-4299-B498-6AB3CA72A6D7&amp;displaylang=en">SQL Server 2008 Developer Toolkit here</a></li>
<li>Table Value Parameter <a href="http://delicious.com/jsterrett/tvp">links</a></li>
</ul>
</li>
</ul>
</li>
<p>I presented a feature that is included in SQL Server 2008 and underused by many developers.  This presentation shows developers how to pass a  DataTable, DataReaders and Lists to SQL Server database objects with only two extra lines of C# or VB.NET code. </p>
<p>As promised below are some reference links</p>
<li><strong>David Hoerster (</strong><a href="http://geekswithblogs.net/DavidHoerster/Default.aspx"><strong>Blog</strong></a><strong> | </strong><a href="http://twitter.com/DavidHoerster"><strong>Twitter</strong></a><strong>) &#8211; jQuery Code Snippets in Visual Studio 2010</strong></li>
</ul>
<p>Time is money and David’s fifteen minute tip might just save you a lot of time and money.    He covered several tools that will help you generate some awesome JavaScript. </p>
<p>I  really liked the <a href="http://jsfiddle.net/">jsFiddle.NET</a> tool.  It looks like a great tool to mockup some a user interface (more on user interfaces later).</p>
<ul>
<li><strong>Rich Dudley (</strong><a href="http://helpcentral.componentone.com/CS/evangelists/b/rich_dudley/default.aspx"><strong>Blog</strong></a><strong>  | </strong><a href="http://twitter.com/rj_dudley"><strong>Twitter</strong></a><strong> ) &#8211; A Quick Look at the New SQL CE Engine</strong></li>
</ul>
<p>Being addicted to databases I very happy to see that I wasn’t the only one presenting a topic based on databases.  Rich did a great job explaining what SQL CE can do and what it cannot do. </p>
<p>Rich <a href="http://helpcentral.componentone.com/CS/evangelists/b/rich_dudley/archive/2010/08/11/recap-pittsburgh-net-ug-swag-a-palooza-2010-08-10.aspx">blogged about his experience</a> (post includes photos, slides and more)</p>
<ul>
<li><strong>John Hidey (</strong><a href="http://sharpdudes.com/blog/"><strong>Blog</strong></a><strong> | </strong><a href="http://twitter.com/johnhidey"><strong>Twitter</strong></a><strong>) &#8211; Layout Controls for XAML</strong></li>
</ul>
<p>I have to admit that XAML and I don’t get along well.  We had a fling a few years ago.  XAML cheated on me and I haven’t been the same since.</p>
<p>Ok seriously, I tried XAML a few times and found it very hard to understand.  John did a great job going over the common things that are hard to understand when you get started with XAML.   John started with some very basic controls and then built a final example that included all the basic controls.</p>
<ul>
<li><strong>Eric Kepes (</strong><a href="http://erickepes.com/"><strong>Blog</strong></a><strong> | </strong><a href="http://twitter.com/ekepes"><strong>Twitter</strong></a><strong>) &#8211; Bowling for TDD</strong></li>
</ul>
<p>At this summers PGH.NET Code Camp we had a speakers session where one of the presenters said, “Code is considered legacy code when TDD is not applied.”  Eric bowling for TDD example showed how anyone can start developing TDD.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/08/12/recap-pgh-net-august-2010-meeting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving SharePoint to the data center</title>
		<link>http://johnsterrett.com/2010/08/03/moving-sharepoint-to-the-data-center/</link>
		<comments>http://johnsterrett.com/2010/08/03/moving-sharepoint-to-the-data-center/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 13:44:33 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[HA]]></category>
		<category><![CDATA[Log Shipping]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[VLDB]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/?p=249</guid>
		<description><![CDATA[I cannot speak for the whole legal industry but where I work a lot of people love some SharePoint.  It’s like 50 Cent says, “We love SharePoint like a fat kid loves cake.”  And trust me we love some cake.  With this mad love of SharePoint comes great collaboration and with this great collaboration comes tons of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F08%2F03%2Fmoving-sharepoint-to-the-data-center%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F08%2F03%2Fmoving-sharepoint-to-the-data-center%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I cannot speak for the whole legal industry but where I work a lot of people love some SharePoint.  It’s like 50 Cent says, “We love SharePoint like a fat kid loves cake.”  And trust me we love some cake.  With this mad love of SharePoint comes great collaboration and with this great collaboration comes tons of binary files stored in a database.  What does this mean to the DBA? SharePoint now consists of <a href="http://sqlserverpedia.com/wiki/Very_Large_Databases_%28VLDBs%29">VLDB’s</a>. </p>
<h3>Hmm… How do we move the VLDB’s across the USA and keep them in sync?</h3>
<p>With the built in features of Log Shipping, database Mirroring, Transactional Replication with SQL Server I knew it was possible to migrate the databases and keep them in-sync.   At the time I wasn’t exactly sure of the best way to do this so I used the bat phone.</p>
<p>While some people love SharePoint I love Twitter. Twitter allows me to communicate with several great DBA’s.  For example, I used <a href="http://www.brentozar.com/archive/2009/12/i-need-sqlhelp/">#sqlhelp</a> which is the equivalent of getting Batman on the bat phone.  This time it was Brent Ozar ( <a href="http://twitter.com/brento">Twitter</a> | <a href="http://www.brentozar.com">Blog</a>) who confirmed my gut feeling that Log Shipping was the way to go.</p>
<h3>So…. How do you do it?</h3>
<p>The complete process I used is documented at <a href="http://www.mssqltips.com/tip.asp?tip=2073">mssqltips #2073</a>.  This tip walks you though the process of 22 steps to get the job done.  I hope this tip helps out other DBA’s that need to migrate VLDB’s from one location to another location without using third party tools.</p>
<p>If you have any comments or suggestions please forward them along.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/08/03/moving-sharepoint-to-the-data-center/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Resolving Very Large MSDB</title>
		<link>http://johnsterrett.com/2010/07/26/resolving-very-large-msdb/</link>
		<comments>http://johnsterrett.com/2010/07/26/resolving-very-large-msdb/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 17:00:13 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[MSDB]]></category>
		<category><![CDATA[shrinkdatabase]]></category>
		<category><![CDATA[sysmaintplan_logdetail]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/?p=244</guid>
		<description><![CDATA[The following is the a walk-through guide towards how I resolved a problem with a MSDB that went wild.  I strongly recommend never shrinking database files.  I am not alone on this.  If you need more reasons check here (If you don’t like that example see the ones used in that post). Unfortunately I am [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F07%2F26%2Fresolving-very-large-msdb%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F07%2F26%2Fresolving-very-large-msdb%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>The following is the a walk-through guide towards how I resolved a problem with a MSDB that went wild.  I strongly recommend never shrinking database files.  I am not alone on this.  If you need more reasons <a href="http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/">check here</a> (If you don’t like that example see the ones used in that post).</p>
<p>Unfortunately I am in a situation where I didn’t have another option.  We didn’t have a process on a server to delete records from the tables used to log SQL Server Agent job information. This database server in particular has over 400 databases and hourly transactional logs and a full backup.  This alone will create 10,000 rows daily when logging the results.  We actually reached the point where the data drive free space was consumed.</p>
<h2>Backup MSDB</h2>
<p>First, step is to do a full backup of MSDB.  You should always make a backup before you plan on doing any changes with a system database.  You should also have a plan to restore the system database just in case you have to implement it.</p>
<h2>So Where&#8217;s the Beef?</h2>
<p>Next, I needed to know why this database was so huge.  I ran the following query to see the file size of all database objects within the MSDB database. You can find this query written by <a href="http://www.mssqltips.com/author.asp?authorid=38">Jeremy Kadlec</a> in <a href="http://www.mssqltips.com/tip.asp?tip=1461">MSSQLTIP #1461</a> I also highly recommend reading that tip as it will provide some more helpful information to troubleshoot a large MSDB.</p>
<pre class="brush: sql;">
SELECT object_name(i.object_id) as objectName,

i.[name] as indexName,
Sum(a.total_pages) as totalPages,

sum(a.used_pages) as usedPages,

sum(a.data_pages) as dataPages,

(sum(a.total_pages) * 8 ) / 1024 as totalSpaceMB,

(sum ( a.used_pages) * 8 ) / 1024 as usedSpaceMB,

(sum(a.data_pages) * 8 ) / 1024 as dataSpaceMB

FROM sys.indexes i

INNER JOIN sys.partitions p

ON i.object_id = p.object_id

AND i.index_id = p.index_id

INNER JOIN sys.allocation_units a

ON p.partition_id = a.container_id

GROUP BY i.object_id, i.index_id, i.[name]

ORDER BY sum(a.total_pages) DESC, object_name(i.object_id)

GO
</pre>
<h2>Dam you sysmaintplan_logdetail</h2>
<p>Okay, we tried to using <strong>sp_maintplan_delete_log</strong> and it failed because the transaction log grew and consumed all the space on the drive for transactional log files.  We are not allowed to take the SQL Server database engine offline so we go with the next best option truncate the tables in question and shrink the database.</p>
<p>Yes I know……  I said shrink the database.  I actually had to slap myself  after typing this.</p>
<p>I found this great post on <a href="http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/d81fe528-5ce5-4d31-b758-01e716bd0ec8/">msdn</a> that walks you through the script to truncate the sysmaintplan_logdetail table.</p>
<pre class="brush: sql;">

ALTER TABLE [dbo].[sysmaintplan_log] DROP CONSTRAINT [FK_sysmaintplan_log_subplan_id];

ALTER TABLE [dbo].[sysmaintplan_logdetail] DROP CONSTRAINT [FK_sysmaintplan_log_detail_task_id];

truncate table msdb.dbo.sysmaintplan_logdetail;

truncate table msdb.dbo.sysmaintplan_log;

ALTER TABLE [dbo].[sysmaintplan_log] WITH CHECK ADD CONSTRAINT [FK_sysmaintplan_log_subplan_id] FOREIGN KEY([subplan_id])

REFERENCES [dbo].[sysmaintplan_subplans] ([subplan_id]);

ALTER TABLE [dbo].[sysmaintplan_logdetail] WITH CHECK ADD CONSTRAINT [FK_sysmaintplan_log_detail_task_id] FOREIGN KEY([task_detail_id])

REFERENCES [dbo].[sysmaintplan_log] ([task_detail_id]) ON DELETE CASCADE;
</pre>
<p>Shrink MSDB</p>
<p>Now I know you followed the first step and backed up your MSDB.  Once again you should never consider truncating or shrinking data if you don’t have a working backup that can be restored.</p>
<p>Okay now that we are done with the disclaimer I created the following script to truncate the log and data files.</p>
<pre class="csharpcode">
<pre class="brush: sql;">

--- SHRINK THE MSDB LOG FILE

USE MSDB

GO

DBCC SHRINKFILE(MSDBLog, 512)

GO

 

-- SHRINK THE MSDB Data File

USE MSDB

GO

DBCC SHRINKFILE(MSDBData, 1024)

GO
</pre>
<p><span class="kwrd"></span></pre>
<p><!--.csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<h2>Rebuild Indexes</h2>
<p>Now that you did the nasty and shrinked the database data file you need to rebuild your indexes and update your statistics.   You can find the scripts to do this below.</p>
<pre class="brush: sql;">

-- REBUILD ALL INDEXES

USE MSDB

GO

EXEC sp_MSforeachtable @command1=&quot;print '?' DBCC DBREINDEX ('?', ' ', 80)&quot;

GO

-- UPDATE STATISTICS

EXEC sp_updatestats

EXEC sp_helpdb @dbname= 'MSDB'
</pre>
<h2>How do we prevent this from reoccurring?</h2>
<p>Well actually there are quite a few things that could have and should have been done.  We could create a maintenance plan to clean up the SQL Agent history, we can also specify in the agent’s properties to also clean up history.  I will show you how to do both below.</p>
<p>The following is the maintenance task that will help cleanup the agent history tables.</p>
<p><a href="http://johnsterrett.com/img/ResolvingVeryLargeMSDB_9D8/CleanupHistory.jpg"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="Cleanup History" src="http://johnsterrett.com/img/ResolvingVeryLargeMSDB_9D8/CleanupHistory_thumb.jpg" border="0" alt="Cleanup History" width="244" height="124" /></a></p>
<p>You can also right click on the SQL Server Agent in SSMS and select properties.  Once the properties window comes up select History on the list on the left.  You will then be able to remove data by record size or date.</p>
<p><a href="http://johnsterrett.com/img/ResolvingVeryLargeMSDB_9D8/AgentCleanHistory.jpg"><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="AgentCleanHistory" src="http://johnsterrett.com/img/ResolvingVeryLargeMSDB_9D8/AgentCleanHistory_thumb.jpg" border="0" alt="AgentCleanHistory" width="244" height="220" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/07/26/resolving-very-large-msdb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>24 Hours of FREE SQL Server Training</title>
		<link>http://johnsterrett.com/2010/05/17/24-hours-of-free-sql-server-training/</link>
		<comments>http://johnsterrett.com/2010/05/17/24-hours-of-free-sql-server-training/#comments</comments>
		<pubDate>Mon, 17 May 2010 15:00:53 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[24HrsOfPASS]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/?p=202</guid>
		<description><![CDATA[On May 19th there will be 24 live back-to-back presentations including ones highlighting new features provided in SQL Server 2008 R2 and more.  I attended parts of the 24 hours of PASS last year and was blown away by the content.  If you work with SQL Server I highly recommend you attend.   You can register [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F05%2F17%2F24-hours-of-free-sql-server-training%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F05%2F17%2F24-hours-of-free-sql-server-training%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>On May 19th there will be 24 live back-to-back presentations including ones highlighting new features provided in SQL Server 2008 R2 and more.  I attended parts of the 24 hours of PASS last year and was blown away by the content.  If you work with SQL Server I highly recommend you attend.   You can register online now at <a title="http://www.sqlpass.org/24hours/2010/" href="http://www.sqlpass.org/24hours/2010/">http://www.sqlpass.org/24hours/2010/</a></p>
<p>The following speakers are lined up for this great event.  <a href="http://www.sqlpass.org/24hours/2010/Sessions/WhatsReallyHappeningonYourServer.aspx">Adam Machanic</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/DatabaseDevelopmentPatterns.aspx">Andy Leonard</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/ManageYourDBACareerDontLetItManageYou.aspx">Brad McGehee</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/BLITZ60MinuteServerTakeovers.aspx">Brent Ozar</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/IntroductiontoPowerPivot.aspx">Brian Knight</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/MultiServerManagementwithUCPMDWandPBM.aspx">Chuck Heinzelman</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/SQLTuningGetItRighttheFirstTime.aspx">Dean Richards</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/ExploringSQLServer2005and2008Security.aspx">Don Kiely</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/FilteredIndexesSparseColumns.aspx">Don Vilen</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/SolvingCommonBusinessProblemswithMicrosoftPo.aspx">Donald Farmer</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/GettingStartedwithSQLServerUtilityinSQLSer.aspx">Glenn Berry</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/ReportingServicesEnhancementsinSQLServer2008.aspx">Greg Low</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/DataTierApplications.aspx">Jacob Sebastian</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/EasierthanEverReportAuthoringinSSRS2008R2.aspx">Jessica Moss</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/WhatExactlyIsinSQLServer2008R2.aspx">Kevin Cox</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/Top10MistakesonSQLServer.aspx">Kevin Kline</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/DatabaseDesignFundamentals.aspx">Louis Davidson</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/UsingDataCompressionwithSQLServer2008and20.aspx">Maciej Pilecki</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/ProducingDashboardswithPerformancePointService.aspx">Peter Myers</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/PowerPivotforFinancialDecisionMakers.aspx">Peter Ward</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/ImplementingMDMUsingSQLServer2008R2MasterD.aspx">Rushabh Mehta</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/ManagingSSISPackageDeploymentswithPowerShell.aspx">Sean McCown</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/HighPerformanceFunctions.aspx">Simon Sabin</a>, <a href="http://www.sqlpass.org/24hours/2010/Sessions/SQLServer2008R2HowtoManageCPUsCoresand.aspx">Thomas Grosher</a></p>
<div class="mceTemp">
<dl class="wp-caption alignright" style="width: 260px;">
<dt class="wp-caption-dt"><img title="Watching Paint Dry" src="http://farm3.static.flickr.com/2537/3728901153_a0f8733ed1.jpg" alt="Watching Paint Dry" width="250" height="227" /></dt>
<dd class="wp-caption-dd">Watching Paint Dry</dd>
</dl>
<p>&#8220;But John I have to <span style="text-decoration: line-through;">do xyz</span> watch the paint dry on May 19th and the 20th.&#8221;</div>
<p>That&#8217;s fine, it looks like these sessions will be recored and made available through PASS within two months.  If you access the event this way you can watch 24hrs of PASS and the paint at the same time <img src='http://johnsterrett.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>A good friend of mine Thomas LaRock(<a href="http://thomaslarock.com">blog</a> | <a href="http://twitter.com/sqlrockstar">twitter</a>) is organizing this bad boy.  For more information check out <a href="http://thomaslarock.com/2010/05/24-hours-of-pass-is-coming/comment-page-1/">his post </a>or the <a href="http://www.sqlpass.org/24hours/2010/">24 hrs of PASS </a>site.  I know it will be a big hit!</p>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/05/17/24-hours-of-free-sql-server-training/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DBA Survivor, Becoming a Rock Star DBA</title>
		<link>http://johnsterrett.com/2010/05/13/dba-survivor-becoming-a-rock-star-dba/</link>
		<comments>http://johnsterrett.com/2010/05/13/dba-survivor-becoming-a-rock-star-dba/#comments</comments>
		<pubDate>Thu, 13 May 2010 15:00:58 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Book Review]]></category>
		<category><![CDATA[PASS]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/?p=219</guid>
		<description><![CDATA[In today’s world many companies want and need their employees to do more with less resources.  You might find yourself in a position where you start to manage databases while doing many other tasks.  Thomas LaRock’s book may  save you countless hours.  If you are starting and your goal is to be a Rock Star [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F05%2F13%2Fdba-survivor-becoming-a-rock-star-dba%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F05%2F13%2Fdba-survivor-becoming-a-rock-star-dba%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In today’s world many companies want and need their employees to do more with less resources.  You might find yourself in a position where you start to manage databases while doing many other tasks.  <a href="http://thomaslarock.com/">Thomas LaRock’s</a> book may  save you countless hours.  If you are starting and your goal is to be a Rock Star DBA this book might be one of the best investment you can make to have a successful career as a Database Administrator.</p>
<p>During the first week of January I moved from .NET Developer and <span style="text-decoration: line-through;">part-time</span> accidental DBA to full time DBA and PeopleSoft Engineer.  While this book just came off the shelves I still found it very interesting six months after I landed the job as a Database Administrator.  <a href="http://www.brentozar.com/archive/2010/05/dba-survivor-by-tom-larock-book-review/">I agree with Brent Ozar</a>, this book is tailor made for someone moving into a DBA role.  I also still think that it has useful information for someone like myself, someone who wants to understand what a Database Administrator does, or someone who has thoughts of becoming a DBA.</p>
<h3><a href="http://dbasurvivor.com/"><img class="alignleft" src="http://ecx.images-amazon.com/images/I/41Et8jDPHLL._SS500_.jpg" alt="" width="208" height="208" /></a>Favorite Quote</h3>
<p>Tom does a great job giving you great information but he also throws in entertaining stories and great quotes.  While many readers will like the <a href="http://dbasurvivor.com/?p=120">“shards of broken glass comment”</a> quote my favorite is what you (the DBA) have in common with the President.  I would paste the quote below but that would ruined the fun.  I will tell you this, it’s hilarious but also at the same time very true.</p>
<h3>Checklist</h3>
<p>Checklists are very important to help automate processes and to make your life easier.  Heck sometimes they are as important as life and death.  For example, when a pilot is about to fly a single engine jet plane they have a checklist to complete before they go in the air.  Tom’s checklist for your first 100 days on the job is essential to make sure you have safe travels and are out of harms way once you get in the air with your DBA career.</p>
<h3>No One Knows Everything</h3>
<p>If you have not learned this lesson yet I highly recommend you do it now before its too late.  Tom explains why it’s just not possible to know everything.  He also provides some examples on how you can find the answers to what you don’t know.</p>
<h3>Connect, Share, Learn</h3>
<p>Within my five year career in IT I have had the pleasure to work at a major consulting firm, a dot com, and a global law firm.  What is the constant with these three environments?   There are a lot of the people in IT who prefer to stay in their cubical and communicate the least amount as possible. Tom explains not only why you want to break this trend but also includes some benefits.</p>
<h3>Where is the Buffet?</h3>
<p>Surprisingly this was the most important chapter for me. The goal of this book is to make sure you have a long successful career as a DBA.  This is not possible if your life is cut short due to health issues.  When your profession demands that you sit in front of a computer screen it’s easy to make some bad decisions that can put your health in jeopardy.  This was a wake up call for me. I am pushing 300 lbs and am glad to get back on the right track so I can have a long successful career as a DBA.</p>
<p>So there you have it.  If you are new into the DBA game or know of someone who is seriously considering becoming a DBA get this book.  You can find it at <a href="http://www.amazon.com/gp/offer-listing/1430227877?ie=UTF8&amp;tag=sq0f-20&amp;linkCode=am2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1430227877">amazon</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/05/13/dba-survivor-becoming-a-rock-star-dba/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PGH.NET Code Camp Review</title>
		<link>http://johnsterrett.com/2010/04/23/pgh-net-code-camp-review/</link>
		<comments>http://johnsterrett.com/2010/04/23/pgh-net-code-camp-review/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 14:08:55 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Code Camp]]></category>
		<category><![CDATA[Filtering Index]]></category>
		<category><![CDATA[indexes]]></category>
		<category><![CDATA[SQLSaturday]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/2010/04/23/pgh-net-code-camp-review/</guid>
		<description><![CDATA[This past weekend I had the pleasure of helping out David Hoerster (bio, twitter) with the setup of PGH.NET Code Camp.&#160; Why, would I want to get up before the crack of dawn to help?&#160; Well for starters David is a die hard Pittsburgh Pirates fan like myself.&#160; Okay the real answer, is that I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F04%2F23%2Fpgh-net-code-camp-review%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F04%2F23%2Fpgh-net-code-camp-review%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This past weekend I had the pleasure of helping out David Hoerster (<a href="http://www.linkedin.com/in/davidhoerster">bio</a>, <a href="http://twitter.com/DavidHoerster">twitter</a>) with the setup of <a href="http://codecamppgh.com/default.aspx">PGH.NET Code Camp</a>.&#160; Why, would I want to get up before the crack of dawn to help?&#160; Well for starters David is a die hard Pittsburgh Pirates fan like myself.&#160; Okay the real answer, is that I wanted to help with the code camp before I ran my first <a href="http://sqlsaturday.com/36/eventhome.aspx">SQLSaturday in West Virginia</a>.&#160;&#160; This was a great practice before the game starts on May 1st. </p>
<p>In short I learned that if you have good volunteers it’s actually not too hard to have a great event.&#160; If the event is free there will be people who just don’t show.&#160; I guess mowing their lawn is more important than free training?&#160; People will also leave before the event is over.&#160; I could be wrong but I thought about half of the crowd left before the last session ended.&#160; Finally, if a speaker doesn’t show you could replace the session with speakers panel.&#160; This was a great move and actually was my favorite session of the day.&#160; </p>
<h3>SQL Server 2008 for Developers</h3>
<p>During the day I also did a presentation on SQL Server 2008 for Developers.&#160; I presented right after lunch and expected the majority of the crowed to have a food coma from the free burritos but this was not the case.&#160; It actually was a nice interactive session. The following are a few quick facts from the presentation.&#160; </p>
<p>About 40 people attended this session and only five of them are currently using SQL 2008.&#160; I know this is a small sample size but it makes me believe that there are a lot of people out there still on SQL 2005 or SQL 2000.    </p>
<p>The majority of the people awake (yes,&#160; a few experience the food coma) were really impressed with using the real-time debugger to debug stored procedures, using merge to replace truncate table insert into table and use TVP to pass a data table in as an input parameter.</p>
<h3>Follow-up Answers    <br /></h3>
<p>The following are answers to some questions that were asked after the session.&#160; Thought I would answer them here so others could find them in the future.</p>
<h5>Can I create an index to filter based on dates?</h5>
<p>Yes, you can.&#160; I believe this is a new feature added in SQL Server 2008.&#160; The following script will execute.</p>
<pre class="csharpcode"><span class="kwrd">CREATE</span> <span class="kwrd">NONCLUSTERED</span> <span class="kwrd">INDEX</span> FIBillOfMaterialsByStartDate
    <span class="kwrd">ON</span> Production.BillOfMaterials (ComponentID, StartDate, EndDate)
<span class="kwrd">WHERE</span> StartDate &gt; <span class="str">'20000801'</span> <span class="kwrd">AND</span> StartDate &lt; <span class="str">'20010801'</span>;
<span class="kwrd">GO</span></pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>Checkout this MSDN <a href="http://msdn.microsoft.com/en-us/library/cc280372.aspx">link for more</a> on Filtering Indexes.&#160; </p>
<h5>How can I make my database run faster?&#160; </h5>
<p>This is always a fun question and a hard one to answer without looking at the database and the server it resides on.&#160;&#160; I recommended that this individual start with the free performance boosts.&#160; This is also known as managing your indexes.&#160;&#160; To do this checkout the following great links with video from SQLServerPedia.</p>
<ul>
<li><a href="http://sqlserverpedia.com/wiki/Index_Maintenance">Index Management&#160; (Free Performance)</a></li>
<li><a href="http://sqlserverpedia.com/wiki/Index_Related_DMV_Queries">Find unused Indexes and Missing Indexes</a> </li>
</ul>
<h6>Can I find the last time database objects were modified?</h6>
<p>Yes, check out this <a href="http://johnsterrett.com/2009/10/06/when-was-that-object-modified/">link for a script</a> that does the following task </p>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/04/23/pgh-net-code-camp-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book Review: &#8220;Confessions of a Public Speaker&#8221;</title>
		<link>http://johnsterrett.com/2010/03/30/book-review-confessions-of-a-public-speaker/</link>
		<comments>http://johnsterrett.com/2010/03/30/book-review-confessions-of-a-public-speaker/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 13:00:02 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[Professional Development]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Book Review]]></category>
		<category><![CDATA[CodeCamp]]></category>
		<category><![CDATA[SQLSaturday]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/?p=188</guid>
		<description><![CDATA[This year I made a goal to read six new books and to share my experience with everyone via book reviews.  This is the first review of the year and I am excited to give feedback on a book I really enjoyed.  Normally self help books put me to sleep but this was an exception [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F03%2F30%2Fbook-review-confessions-of-a-public-speaker%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F03%2F30%2Fbook-review-confessions-of-a-public-speaker%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This year I made a goal to read six new books and to share my experience with everyone via book reviews.  This is the first review of the year and I am excited to give feedback on a book I really enjoyed.  Normally self help books put me to sleep but this was an exception as it was informative and entertaining to read.  If you plan to do public speaking in the near future I highly recommend this book.</p>
<p>My motivation for reading <a href="http://www.amazon.com/Confessions-Public-Speaker-Scott-Berkun/dp/0596801998">“Confessions of a Public Speaker” by Scott Berkun</a> is simple.  I find myself doing more presentations and I want to improve my craft.  This year I will be speaking at <a href="http://codecamppgh.com/default.aspx">PGH.NET Code Camp in April</a> and also at <a href="http://sqlsaturday.com/36/eventhome.aspx">SQL Saturday #36 in Wheeling, WV.</a> Public speaking is not easy for me.  I completely agree with <a href="http://sqlblog.com/blogs/adam_machanic/archive/2009/12/30/improving-your-public-speaking-confessions-of-a-public-speaker.aspx">Adam Machanic’s blog</a> post.  It takes a lot of practice and some reading to see how others succeed. Therefore, I want to take any advantage I can to make my presentations better.   The lessons I learned in the first chapter alone made this book worth the $17 on Amazon.</p>
<p>The following are some very important lessons learned.  Most people at your presentation hope you do well but also hope your presentation ends soon.  It&#8217;s funny, after I read this I started laughing because it&#8217;s so true. I also learned to know your material but know you shouldn&#8217;t be perfect.  Normally, I try to be a perfectionist so this is something I had to know.  I cannot go back in time and correct my mistakes. Ummm&#8230; maybe I can I will have to add this to my todo list.   Finally, I learned it&#8217;s the mistakes you make before you present that matter the most.  I will dive into this with my confession below.</p>
<p>Being that the title of the book is “Confessions of a Public Speaker” it&#8217;s only fair to include a confession of my own.  With experience I learned that I must take control of what I can control.    Three years ago I did my first presentation at the Pittsburgh Code Camp and did a presentation on extending the Reporting Service API’s.  While no one booed or threw fruit at me the presentation was a hot mess.  I was modifying slides in the speakers room, I didn’t do a practice run of the demos, heck I didn’t go through the audience’s point of view when I built the presentation.  If I would have taken care of what I could control (my presentation) this could have been a killer presentation.  Regardless, it was a great learning opportunity which made my future presentations much better.</p>
<p>If you want to improve your public speaking I highly recommend Confessions of a Public Speaker. This book will stay on my bookshelf within an arms reach for quite some time.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/03/30/book-review-confessions-of-a-public-speaker/feed/</wfw:commentRss>
		<slash:comments>75</slash:comments>
		</item>
		<item>
		<title>Cutover 30+ GB databases in 60 seconds with SQL Server 2005/2008</title>
		<link>http://johnsterrett.com/2010/02/23/cutover-30-gb-databases-in-60-seconds-with-sql-server-20052008/</link>
		<comments>http://johnsterrett.com/2010/02/23/cutover-30-gb-databases-in-60-seconds-with-sql-server-20052008/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 12:58:51 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[High Availability]]></category>
		<category><![CDATA[Mirroring]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/?p=151</guid>
		<description><![CDATA[You kid brother just messed up a database migration.  You now have sixty seconds to migrate a 30 GB database or you kid brother is… Okay I gave it a shot If you are familiar with moving databases across servers most likely you are using one of the following methods.  Today I am going to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F02%2F23%2Fcutover-30-gb-databases-in-60-seconds-with-sql-server-20052008%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F02%2F23%2Fcutover-30-gb-databases-in-60-seconds-with-sql-server-20052008%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<div><img style="display: inline; margin-left: 2px; margin-right: 2px" src="http://www.currentfilm.com/images3/60secondsdvd.jpg" alt="" width="133" height="183" align="left" />You kid brother just messed up a database migration.  You now have sixty seconds to migrate a 30 GB database or you kid brother is…</p>
<p>Okay I gave it a shot <img src='http://johnsterrett.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>If you are familiar with moving databases across servers most likely you are using one of the following methods.  Today I am going to write about what goes on during these methods with a focus on speed and provide another option that might work for you. <BR></p>
<ul>
<li>Detach/Attach</li>
<li>Copy Database Wizard</li>
<li>Backup/Restore</li>
<li>3rd Party Tools</li>
</ul>
<h2>Detach/Attach</h2>
<p>The detach/attach method allows you to detach and reattach databases. Therefore, in order to move a database from one server to another you have to detach the database, physically move the data and log files to the new server and then attach the database.  <strong>An unforeseen bottleneck with this strategy might be network latency. </strong>While this method is very straight forward and simple how long can the database be offline while you are moving the database files (mdf, ndf, ldf) during the detach/attach process?</p>
<h2>Copy Database Wizard</h2>
<p>The copy database wizard is a tool that leverages SQL Server Integration Services (SSIS) to copy a database from one server to another.  The account that the package uses at runtime has to have <em>sysadmin</em> role on both the source and destination instances.  You have two options during the copy process.  The first method is detach/attach see the paragraph above for feedback on using detach/attach.  The second method includes using SMO to script database objects.  This method keeps the source database online during the copy but is much slower than the detach/attach.  Therefore, I have no feedback on this method.  Have you used it? If so please add your comments.</p>
<h2>Backup/Restore</h2>
<p>Assuming you are using the Full recovery mode for your database the backup restore method for moving a database involves taking a full backup and a transactional log backup where you backup the tail of the log, and leave the database in restoring state.  This will take the source database offline keep the data in sync.  With restore time being a factor you could restore the full backup and do incremental transaction logs up to the point of cutting over assuming assuming no full backups occurred on your database while you started applying transactional backups.</p>
<h2>And the winner is…</h2>
<p>Drum roll please……..  And the winner is <strong>Database Mirroring in High Availability Mode</strong> as it can allow you to <span style="text-decoration: line-through;">cutover</span> failover to migrate huge databases in less than sixty seconds.  Okay I might be cheating, it will take much more than sixty seconds to configure. <strong>The important fact is that it will seam like it only took seconds to the end users.</strong> If your application uses .NET 2.0+ framework and you configure client side redirect the end users might not experience an outage at all.</p>
<p>To setup database mirroring it is highly recommended to make sure the principal and mirror database engine services are using service accounts, they also need access the the ports used by SQL endpoints, and more&#8230;.  Check out the MSDN site for a great <a href="http://msdn.microsoft.com/en-us/library/cc917680.aspx">guide for Database Mirroring</a>.  </div>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/02/23/cutover-30-gb-databases-in-60-seconds-with-sql-server-20052008/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Its on like Donkey Kong!</title>
		<link>http://johnsterrett.com/2010/02/04/its-on-like-donkey-kong/</link>
		<comments>http://johnsterrett.com/2010/02/04/its-on-like-donkey-kong/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 04:00:24 +0000</pubDate>
		<dc:creator>johnsterrett</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[SQLSaturday]]></category>

		<guid isPermaLink="false">http://johnsterrett.com/2010/02/04/its-on-like-donkey-kong/</guid>
		<description><![CDATA[I am glad to announce that SQLSaturday is coming to Wheeling, WV.  This will actually be the first SQLSaturday in West Virginia. The goal is simple, provide a free day of training on  Saturday, May 1st 2010 for SQL Server DBA’s and developers.  This event focuses on speakers, providing a good variety of topics, and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F02%2F04%2Fits-on-like-donkey-kong%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjohnsterrett.com%2F2010%2F02%2F04%2Fits-on-like-donkey-kong%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I am glad to announce that <a href="http://www.sqlsaturday.com">SQLSaturday</a> is coming to Wheeling, WV.  This will actually be the first <a href="http://sqlsaturday.com/36/eventhome.aspx">SQLSaturday in West Virginia.</a> The goal is simple, provide a <strong><span style="text-decoration: underline;">free day of training</span></strong> on  Saturday, <strong>May 1st 2010</strong> for SQL Server DBA’s and developers.  This event focuses on speakers, providing a good variety of topics, and making it all happen through the efforts of volunteers.</p>
<p><a href="http://johnsterrett.com/wp-content/uploads/2010/02/SQLSaturday.jpg"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="SQLSaturday" src="http://johnsterrett.com/wp-content/uploads/2010/02/SQLSaturday_thumb.jpg" border="0" alt="SQLSaturday" width="239" height="104" /></a></p>
<p>Below is the following list of submitted topics as of February 3rd.  If you would like to speak the <a href="http://sqlsaturday.com/36/callforspeakers.aspx">call for speakers</a> is still open until March 15th. We are firm believers in SQLSaturday’s goal to find, grow, and feature speakers that include the next generation of talent.  If you are an MVP or first time presenter we will try to fit you in.</p>
<p><a href="http://johnsterrett.com/wp-content/uploads/2010/02/SQLSat36Image.jpg"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="SQLSat36Image" src="http://johnsterrett.com/wp-content/uploads/2010/02/SQLSat36Image_thumb.jpg" border="0" alt="SQLSat36Image" width="244" height="173" /></a></p>
<p>Registration is now open so you can <a href="http://sqlsaturday.com/36/register.aspx">sign-up to attend</a> SQLSaturday #36.  This event will include a free lunch, door prizes and a post training party.  Did we mention that its free?  Below is photo of <a href="http://www.wvncc.edu/CampusWheeling/AboutWheelingCampus.htm">West Virginia Northern Community College</a> the venue for our event.</p>
<p><a href="http://johnsterrett.com/wp-content/uploads/2010/02/wvncc.jpg"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="wvncc" src="http://johnsterrett.com/wp-content/uploads/2010/02/wvncc_thumb.jpg" border="0" alt="wvncc" width="244" height="159" /></a></p>
<p>We look forward to seeing you in May.  In the meantime you can follow our SQLSaturday blog posts <a href="http://johnsterrett.com/tag/sqlsaturday/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://johnsterrett.com/2010/02/04/its-on-like-donkey-kong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
