<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Richard Douglas - SQL Server Professional</title>
	
	<link>http://sql.richarddouglas.co.uk</link>
	<description>Real world SQL advice and tips</description>
	<lastBuildDate>Tue, 17 Jan 2012 21:57:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/co/LJKyU" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="co/ljkyu" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>#SQLThursday is here</title>
		<link>http://sql.richarddouglas.co.uk/archive/2012/01/sqlthursday-is-here.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2012/01/sqlthursday-is-here.html#comments</comments>
		<pubDate>Tue, 17 Jan 2012 21:09:42 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[SQL Community]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[SQLThursday]]></category>
		<category><![CDATA[Webcasts]]></category>
		<category><![CDATA[linkedIn]]></category>
		<category><![CDATA[Server Admin]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=846</guid>
		<description><![CDATA[<p>Struggling to source quality free content on SQL Server? Finding it difficult to fill the void between #TSQL2sDay and Un-SQL Friday?</p>
<p>Join me for the first EMEA SQL Server webcast of the year Deploying SQL Server Tips &#38; Tricks  on Thursday 19th January 2012!</p>
<p>Starting this month I’m proud to announce that I will be hosting the all [...]]]></description>
			<content:encoded><![CDATA[<p>Struggling to source quality free content on SQL Server? Finding it difficult to fill the void between <a href="http://twitter.com/#!/search/realtime/%23tsql2sday" target="_blank">#TSQL2sDay</a> and <a href="http://www.midnightdba.com/Jen/category/news/unsql/" target="_blank">Un-SQL Friday</a>?</p>
<p>Join me for the first EMEA SQL Server webcast of the year <a href="http://www.quest-software.co.uk/webcast/deploying-sql-server-tips-tricks816255.aspx">Deploying SQL Server Tips &amp; Tricks</a>  on Thursday 19th January 2012!</p>
<p>Starting this month <a>I’m</a> proud to announce that I will be hosting the <em>all new #SQLThursday</em>. Quest has provided free community SQL Server webcasts for many years in the U.S. (<a>You can find dates for both future events and watch previously recorded events at the </a><a href="http://www.quest.com/experts-perspective-webcasts/">Experts Perspective</a>). Starting Thursday, January 19<sup>th</sup>, <a>watch </a>live webcasts at a time specifically <a>for you, attendees </a>in the EMEA region (10AM GMT).</p>
<p>As before, my good friend and colleague Kevin Kline (<a href="http://KevinEKline.com">Blog</a> | <a href="http://www.twitter.com/kekline">Twitter</a>) hosts a webcast in the States on the first and third Thursday of every month, and now on the second Thursday of the month I host one in EMEA.</p>
<p>Session details are currently provisional, but I am excited that many excellent community members have agreed to take part in the series. Get all the details for the EMEA webcasts <a></a><a href="http://www.quest-software.co.uk/landing/default.aspx?ID=7149">here</a>.</p>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/Un7FIR587aI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2012/01/sqlthursday-is-here.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Choosing the right professional</title>
		<link>http://sql.richarddouglas.co.uk/archive/2012/01/choosing-the-right-professional.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2012/01/choosing-the-right-professional.html#comments</comments>
		<pubDate>Wed, 11 Jan 2012 13:01:12 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[Ad-hoc]]></category>
		<category><![CDATA[Career]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Soft skills]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=836</guid>
		<description><![CDATA[<p>I’m writing this blog post from my bed, you may think that’s a little too much information there is a good reason for telling you this as it provided the inspiration for this post. I hadn’t been feeling particularly well at the tail end of last week but pushed on (as you do) as there were [...]]]></description>
			<content:encoded><![CDATA[<p>I’m writing this blog post from my bed, you may think that’s a little too much information there is a good reason for telling you this as it provided the inspiration for this post. I hadn’t been feeling particularly well at the tail end of last week but pushed on (as you do) as there were things that needed to be done. Come the weekend I had to relent and haul myself off to seek medical advice. In the UK local GP surgeries are not open at weekends so I had to go to something called a “walk-in centre” where I was made to wait outside as I had arrived 10 minutes before it was officially open. That’s right in the UK you are expected to be ill at times convenient to the NHS! I should point out that I think the NHS is a wonderful institution and admire the people who work for it, without them the country would be in a sad state of affairs indeed.</p>
<p>However, after seeing the initial triage nurse I waited to see somebody else for further assessment who I explained my symptoms and concerns to and I was told that I had a viral infection and should go home and rest up and take paracetamol. Come Monday things were much worse and I made an appointment at my local surgery, within 5 minutes I was diagnosed with a chest infection and prescribed anti-biotics for the infection. Not only was this the right diagnosis the whole experience was a lot nicer too. My concerns had been listened too, having had a bad chest infection a few years back I knew what the signs were and what my body was telling me yet the first “professional” chose to ignore me, was quite curt and subsequently made the wrong diagnosis.</p>
<p>This post wasn’t designed just to get something off my chest (nice pun eh) it was designed to make you evaluate the service that you provide as an individual to your clients be they internal or external. Who would you rather be perceived as Professional #1 or Professional #2? To succeed in Information Technology (or Information Services if you prefer) it is no longer just down to your technical skills (although this obviously helps), you must also be able to communicate clearly and effectively with every audience that you interact with. I wrote a post on the same topic last year that you may find useful &#8211; <a href="http://sql.richarddouglas.co.uk/archive/2011/07/bridging-the-gap-good-communication-is-key.html" target="_blank">Bridging the gap – Good communication is key</a> </p>
<p>I urge you all to take stock of who you are, how you represent yourself and outline the steps you need to take to become who you deserve to be. Take that step now and become the right professional.</p>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/6v1hj3St34s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2012/01/choosing-the-right-professional.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>2011 – The dissection</title>
		<link>http://sql.richarddouglas.co.uk/archive/2012/01/2011-the-dissection-2.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2012/01/2011-the-dissection-2.html#comments</comments>
		<pubDate>Sun, 01 Jan 2012 21:42:09 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[linkedIn]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=830</guid>
		<description><![CDATA[<p> </p>
<p>Blimey, doesn’t seem like a year since I wrote my last end of year review End of year review 2010 and goals for 2011</p>
<p>Things didn’t quite go to plan, mainly because of an unexpected career change this majorly shifted a number of my priorities which meant that some goals were re-prioritised, others were replaced and some [...]]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>Blimey, doesn’t seem like a year since I wrote my last end of year review <a href="http://sql.richarddouglas.co.uk/archive/2010/12/end-of-year-review-2010-and-goals-for-2011.html" target="_blank">End of year review 2010 and goals for 2011</a></p>
<p>Things didn’t quite go to plan, mainly because of an unexpected career change this majorly shifted a number of my priorities which meant that some goals were re-prioritised, others were replaced and some simply dropped. With this in mind let’s see how I faired with my Goals for 2011:</p>
<blockquote>
<h6>Community</h6>
<p>Last year I made a commitment to the SQL community by starting my blog and attending a few events, this year I have built and consolidated on that platform and intend to take things on to the next stage next year.</p>
<ul>
<li>Write at least two articles for one of the major SQL community websites.</li>
<li>Attend at least one SQL User Group per quarter on top of SQL Bits.</li>
<li>Present some SQL Nuggets at a User Group session.</li>
<li>Monitor and contribute more to #SQLHelp on Twitter.</li>
<li>Contribute more to the various SQL forums.</li>
</ul>
</blockquote>
<p>Partial success here. </p>
<ul>
<li>No published articles, but I did produce 4 SQL Server webcasts for Quest in November so I like to think that this is a tick.</li>
<li>Tick, I attended 4 UG’s this year. Southampton, Surrey, two in Maidenhead as well as SQL Relay and SQLBits (twice). I kind of cheated a bit here by starting up the Maidenhead User Group. If you’re interested in attending <a href="http://www.sqlserverfaq.com/default.aspx?EVTCTAG=Maidenhead" target="_blank">here’s the link for future events</a> and if you fancy your hand at presenting please get in touch.</li>
<li>Contributing more to various media channels is a subjective task. Whilst I did contribute you always feel that you can do more and I hope to address this in 2012.</li>
</ul>
<p>One very nice surprise was that I was awarded the <a href="http://sql.richarddouglas.co.uk/archive/2011/04/microsoft-community-contributor-award.html" target="_blank">Microsoft Community Contributor Award</a> earlier this year so I must have done something right. It’s a great honour to be recognised in this way and I am very thankful to Microsoft for it.</p>
<h5>2012 Community Goals</h5>
<ul>
<li>Publish more content. Not sure on the media for this yet, I’m in talks with marketing to produce more SQL webcasts so watch this space…</li>
<li>Work permitting I’m planning on hosting 6 User Group meetings this year and hopefully attending some of the others around the UK. Unfortunately I can’t commit to a number as it really does depend on where I am in the country on that particular day!</li>
<li>In my new role I have the opportunity to speak to number of users across EMEA, it’s really satisfying to help them with issues and pass on best practices to make their lives easier so this goal is to differentiate between community and professional development better and to try and make a positive difference in and expand the SQL community.</li>
</ul>
<p> </p>
<blockquote>
<h6>Professional Development</h6>
<p>I love SQL Server and try to learn something new each day, to help me achieve this I have set myself the following goals.</p>
<ul>
<li>Take and pass 70-433 and 70-451 exams (SQL Server 2008 Development track).<br />
Eventually I want to take the MCM exams and these are the pre-requisites that I have yet to take.</li>
<li>Take and pass a Windows OS or networking exam.<br />
The idea behind this is that it will provide me with more peripheral knowledge which will enhance my DBA troubleshooting skills.</li>
<li>Blog more, I have a stack of ideas but have not written them up.<br />
This year I intend to become more organised with my blogging and blog at least once or twice a week. The increase in blogging should help with my goal of publishing a couple of articles.</li>
<li>Overhaul my website, the look and feel hasn’t quite turned out as I had hoped, so a redesign with a few new features is just what the doctor ordered.</li>
<li>Read 2 technical and 2 professional development books cover to cover.<br />
At the moment I tend just to read the relevant sections of books and am no doubt missing some real gems.</li>
<li>Make better goals!<br />
One of the books I am interested in reading is “Getting Things Done” by David Allen which was recommended by Brent Ozar <a href="http://kevinekline.com/">Blog</a>|<a href="http://twitter.com/kekline">Twitter</a> in his blog article <a href="http://www.brentozar.com/archive/2010/12/goals-where-were-going-we-dont-need-goals/">Goals? Where we’re going, we don’t need goals.</a> The idea of having goals at different levels which keep you on track does sound appealing and is something I will be looking into.</li>
</ul>
</blockquote>
<p>Changing jobs really hammered the plans I had for personal development in a number of areas as I found myself studying other areas that I had not expected.</p>
<ul>
<li>SQL Exams, I took and passed 70-433 you can read up on the resources I used to pass this exam <a href="http://sql.richarddouglas.co.uk/archive/2011/02/microsoft-70-433-exam-review.html" target="_blank">here</a>. Study time for the 70-451 exam has been limited so this will be a goal for 2012.</li>
<li>Periphery exam goals were dropped.</li>
<li>Blog more, I seem to have blogged less than last year. Definitely an area for improvement.</li>
<li>As you can see my blog hasn’t been overhauled yet, but I have found someone who’s quite good at that kind of thing and is willing to lend a hand.</li>
<li>Book reading, tick.</li>
</ul>
<h5>2012 Professional Development Goals</h5>
<ul>
<li>Make time to study for and take the 70-451 exam.</li>
<li>Make a big dent in the MCM reading list. This means reading it not printing it out, sticking it up and throwing things at it (that wouldn’t be professional at all).</li>
<li>Learn more about the Windows OS, especially Windows Core and Virtualisation.</li>
<li>Blog more to reinforce study material as well as overhauling it.</li>
</ul>
<p>I still have personal goals, but this probably isn’t the right place for them so I shall refrain from posting about that area of my life. This is a SQL blog after all.</p>
<p>Happy New Year,</p>
<p>Rich</p>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/MJHNIHnzYIE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2012/01/2011-the-dissection-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why I blog #Meme15</title>
		<link>http://sql.richarddouglas.co.uk/archive/2011/12/why-i-blog-meme15.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2011/12/why-i-blog-meme15.html#comments</comments>
		<pubDate>Thu, 15 Dec 2011 13:18:46 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[Meme]]></category>
		<category><![CDATA[SQL Community]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[linkedIn]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=809</guid>
		<description><![CDATA[<p>I’d seen various #meme tweets on twitter but it wasn’t until I saw this blog by John Sansom (Blog&#124;Twitter) that I had peeked through the curtains at the party going on across the street. Ironically I had planned to write a post on this very topic because of something I saw online last night, but more [...]]]></description>
			<content:encoded><![CDATA[<p>I’d seen various #meme tweets on twitter but it wasn’t until I saw this <a href="http://www.johnsansom.com/why-did-you-start-blogging/#axzz1gbcdkvHN" target="_blank">blog</a> by John Sansom (<a href="http://www.johnsansom.com/" target="_blank">Blog</a>|<a href="http://www.twitter.com/JohnSansom" target="_blank">Twitter</a>) that I had peeked through the curtains at the party going on across the street. Ironically I had planned to write a post on this very topic because of something I saw online last night, but more about that later. My reason’s for starting a blog are scarily similar to that of John’s in fact it turns out that we even read some of the same resources on how to blog about SQL Server. To summarise John’s post Brent Ozar (<a href="http://www.brentozar.com/">Blog</a>|<a href="http://twitter.com/brento">Twitter</a>) wrote some really inspiring content about blogging with lots of information on how to start you’re own blog, which I followed with great interest eventually leading to this very site.</p>
<p>For those of you that don’t know what #meme is you can read about it <a href="http://www.jasonstrate.com/2011/12/the-meme15-on-social-networking/" target="_blank">here</a> where the invitation from Jason Strate (<a href="http://www.jasonstrate.com/" target="_blank">Blog</a>|<a href="http://twitter.com/stratesql" target="_blank">Twitter</a>) for #Meme15 started. In this post Jason asks two questions:</p>
<ol>
<li>Why did you start blogging?</li>
<li>Why do you currently blog?</li>
</ol>
<p>Hopefully the first paragraph answers question 1, but why do I currently blog?</p>
<p>They say a picture says a thousand words, in order to save me typing lots and wasting valuable coffee drinking time here’s my picture:</p>
<p><a href="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/12/image1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/12/image_thumb1.png" border="0" alt="image" width="577" height="257" /></a></p>
<p>Hopefully this answers why I currently blog, it’s simply to help others. This comment was left on a post by Pinal Dave which can be found <a href="http://blog.sqlauthority.com/2007/04/01/sql-server-tempdb-is-full-move-tempdb-from-one-drive-to-another-drive/" target="_blank">here</a>. There’s some awesome content on his site and one of the most prolific bloggers I have come across.</p>
<p>The take away from this has to be if you like what I’m writing tell you’re friends, if you don’t blame Brent <img src='http://sql.richarddouglas.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/7uZ7wUkgRpQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2011/12/why-i-blog-meme15.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>T-SQL Tuesday #025 – How to view the size of all your databases – #TSQL2sDay</title>
		<link>http://sql.richarddouglas.co.uk/archive/2011/12/t-sql-tuesday-025-how-to-view-the-size-of-all-your-databases-tsql2sday.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2011/12/t-sql-tuesday-025-how-to-view-the-size-of-all-your-databases-tsql2sday.html#comments</comments>
		<pubDate>Tue, 13 Dec 2011 22:48:41 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[T-SQL Tuesday]]></category>
		<category><![CDATA[linkedIn]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=801</guid>
		<description><![CDATA[<p></p>
<p>It’s that time of the month again, no not time, T-SQL time! If you have not heard of T-SQL Tuesday before it was set up by Adam Machanic (Blog&#124;Twitter) and you can read all about it here: T-SQL Tuesday. This months host is Allen White who asked the question “What T-SQL tricks do you use today [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sqlblog.com/blogs/allen_white/archive/2011/12/05/t-sql-tuesday-025-invitation-to-share-your-tricks.aspx" target="_blank"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="T-SQLLogo" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/12/T-SQLLogo.jpg" border="0" alt="T-SQLLogo" width="149" height="154" /></a></p>
<p>It’s that time of the month again, no not time, T-SQL time! If you have not heard of T-SQL Tuesday before it was set up by Adam Machanic (<a href="http://sqlblog.com/blogs/adam_machanic/">Blog</a>|<a href="http://twitter.com/AdamMachanic">Twitter</a>) and you can read all about it here: <a href="http://sqlblog.com/blogs/adam_machanic/archive/2009/11/30/invitation-to-participate-in-t-sql-tuesday-001-date-time-tricks.aspx">T-SQL Tuesday</a>. This months host is Allen White who asked the question “What T-SQL tricks do you use today to make your job easier?” I’m guessing that people will be going mad with DMV’s so I’m going to go down a slightly different route. I must admit I haven’t used it recently due to changing jobs which has meant a change of duties, but it’s just too good not to share.</p>
<p>At some point in your career you’ll be asked by somebody “so just how big is the database?” At this point you have a couple of choices, you can look at the properties of the database or you could even use the system stored procedure sp_spaceused. The problem I found with this sproc was it returned data in two result sets making storing the data more complicated than it actually needs to be, as you can see from the image below.</p>
<p><a href="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/12/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/12/image_thumb.png" border="0" alt="image" width="408" height="388" /></a></p>
<p>I decided to find out if there was an easier way to collate the data for all databases on an instance and indeed there was. The following script uses the internals of sp_spaceused which I have tweaked to return a single result set and is called from within the most documented of undocumented commands sp_msforeachdb the results are written to a temporary table. A good way to use this script is to schedule it within a job to write to a permanent table that can then be used to monitor database growth.</p>
<pre class="csharpcode" style="width: 99%; height: 1670px;">/*
Script written <span class="kwrd">by</span> Richard Douglas
HTTP://<span class="kwrd">SQL</span>.RichardDouglas.co.uk

Script will insert <span class="kwrd">data</span> about the sizes <span class="kwrd">of</span> <span class="kwrd">all</span> databases <span class="kwrd">on</span> the instance <span class="kwrd">into</span> a predetermined <span class="kwrd">table</span>.
This can be used <span class="kwrd">as</span> a snapshot <span class="kwrd">or</span> made <span class="kwrd">into</span> a job <span class="kwrd">to</span> chart the growth <span class="kwrd">of</span> databases <span class="kwrd">over</span> <span class="kwrd">time</span>.

Please note that the DATA_COMPRESSION functionality was introduced <span class="kwrd">in</span> <span class="kwrd">SQL</span> 2008.
<span class="kwrd">If</span> you<span class="str">'re running on SQL Server 2005 comment out the use of DATA_COMPRESSION WHEN creating storage table.
*/

USE TempDB
GO

/*
Create a table to store results.
*/
IF NOT EXISTS (SELECT 1
                FROM sys.Objects
                WHERE Name like '</span>#DatabaseGrowth%<span class="str">'
                AND OBJECT_SCHEMA_NAME(object_id) = '</span>dbo<span class="str">'
                )
BEGIN
    CREATE TABLE [dbo].[#DatabaseGrowth]
    (
         [Database_Name] [char](128) NOT NULL
        ,[Database_Size_MB] DECIMAL(15,2) NOT NULL
        ,[Unallocated_Space_MB] DECIMAL(15,2) NOT NULL
        ,[Reserved_MB] DECIMAL(15,2) NOT NULL
        ,[Data_MB] BIGINT NOT NULL
        ,[Index_Size_MB] BIGINT NULL
        ,[Unused_MB] BIGINT NOT NULL
        ,[DateTimeStamp] DATETIME NOT NULL DEFAULT GETDATE()
    ) ON [PRIMARY]
    WITH (DATA_COMPRESSION = PAGE)
END

TRUNCATE TABLE [dbo].[#DatabaseGrowth]

/*
Insert the data into storage table
*/
INSERT INTO [dbo].[#DatabaseGrowth]
([Database_Name]
,[Database_Size_MB]
,[Unallocated_Space_MB]
,[Reserved_MB]
,[Data_MB]
,[Index_Size_MB]
,[Unused_MB])
EXEC sp_MSforeachdb
'</span><span class="kwrd">DECLARE</span>
    @pages    BIGINT            <span class="rem">-- Working variable for size calc.</span>
    ,@dbname SYSNAME
    ,@dbsize BIGINT
    ,@logsize BIGINT
    ,@reservedpages  BIGINT
    ,@usedpages  BIGINT
    ,@<span class="kwrd">rowCount</span> BIGINT

<span class="kwrd">SET</span> NOCOUNT <span class="kwrd">ON</span>

    <span class="kwrd">SELECT</span>
         @dbsize = <span class="kwrd">SUM</span>(<span class="kwrd">CONVERT</span>(BIGINT,<span class="kwrd">CASE</span> <span class="kwrd">WHEN</span> STATUS &amp; 64 = 0 <span class="kwrd">THEN</span> <span class="kwrd">Size</span> <span class="kwrd">ELSE</span> 0 <span class="kwrd">END</span>))
        ,@logsize = <span class="kwrd">SUM</span>(<span class="kwrd">CONVERT</span>(BIGINT,<span class="kwrd">CASE</span> <span class="kwrd">WHEN</span> STATUS &amp; 64 &lt;&gt; 0 <span class="kwrd">THEN</span> <span class="kwrd">Size</span> <span class="kwrd">ELSE</span> 0 <span class="kwrd">END</span>))
        <span class="kwrd">FROM</span> [?].dbo.sysfiles

    <span class="kwrd">SELECT</span>
         @reservedpages = <span class="kwrd">SUM</span>(a.total_pages)
        ,@usedpages = <span class="kwrd">SUM</span>(a.used_pages)
        ,@pages = <span class="kwrd">SUM</span>(
                <span class="kwrd">CASE</span>
                    /* XML-<span class="kwrd">Index</span> <span class="kwrd">and</span> FT-<span class="kwrd">Index</span> internal tables <span class="kwrd">are</span> <span class="kwrd">not</span> considered "<span class="kwrd">data</span>", but <span class="kwrd">is</span> part <span class="kwrd">of</span> "index_size" */
                    <span class="kwrd">WHEN</span> it.internal_type <span class="kwrd">IN</span> (202,204,211,212,213,214,215,216) <span class="kwrd">THEN</span> 0
                    <span class="kwrd">WHEN</span> a.type &lt;&gt; 1 <span class="kwrd">THEN</span> a.used_pages
                    <span class="kwrd">WHEN</span> p.index_id &lt; 2 <span class="kwrd">THEN</span> a.data_pages
                    <span class="kwrd">ELSE</span> 0
                <span class="kwrd">END</span>
            )
    <span class="kwrd">FROM</span> [?].sys.partitions p
    <span class="kwrd">JOIN</span> [?].sys.allocation_units a <span class="kwrd">ON</span> p.partition_id = a.container_id
    <span class="kwrd">LEFT</span> <span class="kwrd">JOIN</span> [?].sys.internal_tables it <span class="kwrd">on</span> p.object_id = it.object_id

    /* unallocated <span class="kwrd">space</span> could <span class="kwrd">not</span> be negative */
    <span class="kwrd">SELECT</span>
         database_name = <span class="str">''</span>?<span class="str">''</span>
        ,database_size = (@dbsize + @logsize) * 8192 / 1048576
        ,<span class="str">''</span>unallocated <span class="kwrd">space</span><span class="str">''</span> = LTRIM(STR((<span class="kwrd">CASE</span> <span class="kwrd">WHEN</span> @dbsize &gt;= @reservedpages <span class="kwrd">THEN</span> (<span class="kwrd">CONVERT</span> (<span class="kwrd">dec</span> (15,2),@dbsize) - <span class="kwrd">CONVERT</span> (<span class="kwrd">DEC</span> (15,2),@reservedpages)) * 8192 / 1048576 <span class="kwrd">ELSE</span> 0 <span class="kwrd">END</span>),15,2))
        ,reserved = LTRIM(STR((@reservedpages * 8192 / 1024.)/1024,15,0))
        ,<span class="kwrd">data</span> = LTRIM(STR((@pages * 8192 / 1024.)/1024,15,0))
        ,index_size = LTRIM(STR(((@usedpages - @pages) * 8192 / 1024.)/1024,15,0))
        ,unused = LTRIM(STR(((@reservedpages - @usedpages) * 8192 / 1024.)/1024,15,0))'

/*Show <span class="kwrd">data</span>*/

<span class="kwrd">SELECT</span>
 Database_Name
,Database_Size_MB
,Unallocated_Space_MB
,Reserved_MB
,Data_MB
,Index_Size_MB
,Unused_MB
,DateTimeStamp
<span class="kwrd">FROM</span> [dbo].[#DatabaseGrowth]</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>
<p>Thanks for hosting Allen.</p>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/LQe3nvEMwSY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2011/12/t-sql-tuesday-025-how-to-view-the-size-of-all-your-databases-tsql2sday.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speaking Engagements</title>
		<link>http://sql.richarddouglas.co.uk/archive/2011/11/speaking-engagements.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2011/11/speaking-engagements.html#comments</comments>
		<pubDate>Tue, 15 Nov 2011 01:47:33 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[SQL Community]]></category>
		<category><![CDATA[SQLRelay]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=795</guid>
		<description><![CDATA[<p>It only seems like a couple of weeks ago since I wrote a post about new years resolutions which you can read here, scary thing is it’s almost time to think up some new ones. Whilst some of my goals for the year have slipped I’m glad to say that I have exceeded on a number [...]]]></description>
			<content:encoded><![CDATA[<p>It only seems like a couple of weeks ago since I wrote a post about new years resolutions which you can read <a href="http://sql.richarddouglas.co.uk/archive/2010/12/end-of-year-review-2010-and-goals-for-2011.html" target="_blank">here</a>, scary thing is it’s almost time to think up some new ones. Whilst some of my goals for the year have slipped I’m glad to say that I have exceeded on a number of my community goals.</p>
<p>One of my goals was to go to at least one user group a quarter on top of going to SQLBits. I’m glad to say that I’m on target with this having attended groups at Southampton, Surrey and Maidenhead with another planned event in Maidenhead on 6th December which brings me nicely up to my quota. Another one of my community goals was to present some Nuggets at a User Group. Thanks go to Mark Pryce-Maher leader of the Southampton UG who allowed me to come down and do a few minutes I also gave the same nugget during the Lightening Talk Sessions at SQLBits in October and another nugget at Microsoft’s London office as part of SQL Relay – tick, another one completed.</p>
<p>All good so far, so what’s all this about exceeding expectations I hear you cry? Since joining Quest 3 months ago I have been able to secure a meeting room that I can use at Quest from which to start my very own SQL User Group which I blogged about <a href="http://sql.richarddouglas.co.uk/archive/2011/09/a-new-sql-user-group-in-the-uk.html" target="_blank">here</a>. If you are interested in coming along to an event or even speaking at one then please register your interest at <a href="http://www.sqlserverfaq.com/default.aspx?EVTCTAG=Maidenhead" target="_blank">http://www.sqlserverfaq.com/default.aspx?EVTCTAG=Maidenhead</a>. Starting the Maidenhead group has given me a real insight into how much effort the organisers of events are putting in around the globe, I’ve been very lucky to have the support of the other UK SQL Server User Group leaders and we’re all working hard to organise not only our own events but also the second National SQL Relay event in May 2012. I’ll post more about it when we’re allowed to speak more publicly.</p>
<p>As the blog title is called “Speaking Engagements” I should really list what is coming up in the next few months. Last week saw the first of four SQL Server webcasts that I am presenting for Quest software which should be up on the On Demand section of the Quest website any day now. You can find details about the other webcasts and user groups I’m presenting at in the near future below:</p>
<ul>
<li>15/11/2011 &#8211; Live Webcast: Harness the Power of SQL Optimisation &#8211; <a title="http://www.quest.com/webcast/harness-the-power-of-sql-optimisation815797.aspx" href="http://www.quest.com/webcast/harness-the-power-of-sql-optimisation815797.aspx" target="_blank">Register here.</a></li>
<li>22/11/2011 &#8211; Live Webcast: Deliver, Manage and Control Optimal Database Performance  &#8211; <a title="http://www.quest.com/webcast/deliver-manage-and-control-optimal-database-performance815798.aspx" href="http://www.quest.com/webcast/deliver-manage-and-control-optimal-database-performance815798.aspx" target="_blank">Register here.</a></li>
<li>29/11/2011 &#8211; Live Webcast: Don’t get Burnt by these Disaster Recovery Myths &#8211; <a title="http://www.quest.com/webcast/dont-get-burnt-by-these-disaster-recovery-myths815799.aspx" href="http://www.quest.com/webcast/dont-get-burnt-by-these-disaster-recovery-myths815799.aspx" target="_blank">Register here.</a></li>
<li>12/01/2012 – Surrey User Group (Plan Guides) &#8211; <a title="http://www.sqlserverfaq.com/events/343/Sessions-including-Allan-Mitchell-Copper-Blue-at-the-fifth-Surrey-SQL-Server-community-event-600pm-January-12th-Camberley-Surrey.aspx" href="http://www.sqlserverfaq.com/events/343/Sessions-including-Allan-Mitchell-Copper-Blue-at-the-fifth-Surrey-SQL-Server-community-event-600pm-January-12th-Camberley-Surrey.aspx" target="_blank">Register here.</a></li>
<li>07/02/2012 – Maidenhead User Group (Session TBC) – <a href="http://sqlserverfaq.com/events/341/Maidenhead-UG-meeting-sessions-by-Sarvesh-Singh-Mark-Broadbent-and-Richard-Douglas.aspx" target="_blank">Register here.</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/Wt1aCbnbh8I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2011/11/speaking-engagements.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing queries without data</title>
		<link>http://sql.richarddouglas.co.uk/archive/2011/11/writing-queries-without-data.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2011/11/writing-queries-without-data.html#comments</comments>
		<pubDate>Tue, 15 Nov 2011 00:29:04 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[Database Engine]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[Query Optimizer]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Optimisation]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=781</guid>
		<description><![CDATA[<p>Sometimes it’s not possible to have the data you need in order to create the most efficient queries possible. This may be because you don’t have a machine with enough storage capacity, it might even be on a laptop so there is also the security aspect. So how do you address the issue of writing queries [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it’s not possible to have the data you need in order to create the most efficient queries possible. This may be because you don’t have a machine with enough storage capacity, it might even be on a laptop so there is also the security aspect. So how do you address the issue of writing queries with no data to work with?</p>
<p>Luckily there are a couple of ways that this problem can be overcome.</p>
<ol>
<li>Use a data generator.<br />
This sounds great in theory, however the data you will then be querying against will bare no resemblance to the data you will be querying against in production (hopefully a dev/uat/pre-production server first!). The reason for this is that the statistics will be completely different, the same problem occurs when you use obfuscated data. If only there were a way you could query against the statistics themselves, oh wait, there is!</li>
<li>Export the production database schema and it’s statistics.<br />
You may not have access to do this in your live environment, so ask your friendly DBA to do it for you. If you don’t have any third party analysis tools it might be a good idea to do this once a month and keep copies so you can see how queries change over time.</li>
</ol>
<p> </p>
<p>In this example I will export the schema for all database objects of the AdventureWorks database with the exception of extended properties and foreign keys. Foreign keys may cause you an issue here so it might be best to create them as a separate step at the end. I do recommend that you do add the foreign keys in if you are going to be using this methodology as constraints will be checked during insert and update statements as well as giving the optimizer extra options in certain select scenarios.</p>
<p>Open up SSMS and right click on the database you wish to export the statistics for, select “Tasks” and then “Generate Scripts…”:</p>
<p><a href="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image_thumb.png" border="0" alt="image" width="446" height="500" /></a></p>
<p>Depending on your setting this may launch a wizard with the following welcome page. If this is displayed simply click Next:</p>
<p><a href="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image_thumb1.png" border="0" alt="image" width="456" height="424" /></a></p>
<p>In this example I am choosing to export data from the AdventureWorks database and have checked the option to script all objects:</p>
<p><a href="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image_thumb2.png" border="0" alt="image" width="421" height="390" /></a></p>
<p>The key part of the whole script is changing the “Script statistics” option to be “Script Statistics and histograms” as you can see this produces a warning, but in a database the size of AdventureWorks it really took no extra time at all.</p>
<p><a href="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image3.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image_thumb3.png" border="0" alt="image" width="501" height="570" /></a></p>
<p>The next two screens are pretty self explanatory, select your destination be it a new query or a file. Then review the selections you have made thus far.</p>
<p>In my example I chose to create a new database called AdventureWorks_Nodata and ran the script in the context of this new database to create a clone on AdventureWorks with no data but up to date statistics.</p>
<p>Once this is done your server will think that each table actually contains data, if you run the Disk Usage Top Tables Report on your new database you will see that SQL Server believes there are records and these records take up physical space:</p>
<p><a href="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/TopTables.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="TopTables" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/TopTables_thumb.png" border="0" alt="TopTables" width="608" height="492" /></a></p>
<p>Brilliant, we’re now in a position to start writing and running some queries! Well not quite, remember we didn’t actually export any data other than the metadata. This means that to do any testing using this database you will need to be looking at the estimated execution plans. Estimated execution plans do have their own issues of course, but that’s a blog post for another time.</p>
<p>Let’s now write a simple query and view the estimated plan it creates form both our AdventureWorks and new database, as you can see I have taken the liberty of pasting the properties together into one screenshot for you so you can see in one image that the statistics are indeed the same:</p>
<p><a href="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image4.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/image_thumb4.png" border="0" alt="image" width="942" height="555" /></a></p>
<p>As you can see the estimated query plan is identical, and so it should because the statistics are identical!</p>
<p>If we look at the actual query plan for the same query we can see that the estimated number of records is the same, but unsurprisingly the number of rows returned is not. Now we know what the statistics are we could use various performance tuning tricks to tune this query – all without the need for data.</p>
<p><a href="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/15-11-2011-00-25-53.png"><img class="alignleft size-full wp-image-784" title="15-11-2011 00-25-53" src="http://sql.richarddouglas.co.uk/wp-content/uploads/2011/11/15-11-2011-00-25-53.png" alt="" width="1024" height="718" /></a></p>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/TucwFLN5olA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2011/11/writing-queries-without-data.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 5 Third Party Quotes</title>
		<link>http://sql.richarddouglas.co.uk/archive/2011/11/top-5-third-party-quotes.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2011/11/top-5-third-party-quotes.html#comments</comments>
		<pubDate>Wed, 09 Nov 2011 23:33:21 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=761</guid>
		<description><![CDATA[<p>Unless you’ve worked in a vacuum the likelyhood is that you either are a third company or you have many third companies with you, possibly both. Some are really really good and you can learn a lot from talking to them and working things out together, others have staff who should never have been allowed to [...]]]></description>
			<content:encoded><![CDATA[<p>Unless you’ve worked in a vacuum the likelyhood is that you either are a third company or you have many third companies with you, possibly both. Some are really really good and you can learn a lot from talking to them and working things out together, others have staff who should never have been allowed to go near a keyboard period or speak to a customer. I.T. can be extremely stressful and bizarrely it’s these people that can make your week. With this in mind I’d like to nominate my favourite 5 third party quotes of my career so far in reverse order to brighten up your day:</p>
<ul>
<li>Email from third party: We’re delighted to inform you that we received your server yesterday, our software has been installed and configured on the two drives which have been configured as RAID 10 which means mirrored and striped.<br />
My reply: That’s really impressive, would you mind telling me how you managed to mirror AND stripe on only two physical disks?!?!<BR>I never received a response.</li>
<p><BR></p>
<li>Third Party: We’re concerned that you are not backing up your databases.<br />
Me: I am backing them up.<br />
Third Party: You’re not.<br />
Me: I’ll double check 99.9% sure they are though, not had any failure notification come through. Yup just checked MSDB everything looks fine.<br />
Third party: I tell you you’re not! I dialled in yesterday upon X’s request on ticket Y and saw you had no maintenance plans!!!<br />
Me: Can I just put you on hold for a few seconds please…. Guy’s you’ll never believe this, this guy thinks you can only back up databases via maintenance plans….</li>
<p><BR></p>
<li>Me: I’m not convinced this design is scalable, you have lots of redundant data here.<br />
Third Party: Normalization went out with the dinosaurs.</li>
<p><BR></p>
<li>Me: I’m just reading this maintenance schedule, you say we have to abide by to keep your application optimal. I’m all for proactive maintenance but this doesn’t seem right can I skip some of it.<br />
Third Party: No, that would invalidate your support agreement with us.<br />
Me: But you want me to autoshrink all your databases EVERY night.<br />
Third Party: Yup, keeping them small makes them more optimal.<br />
Me: That’s not true, all you’ll do is fragment all the data. Have you not read Paul Randal’s blog?<br />
Third Party: Never heard of him, does he work for your company?<br />
Me: I wish.</li>
<p><BR></p>
<li>Me: X, I’ve looked at this database and you have 250 tables all with triggers on and they all have the same logical flaw.<br />
Third Party: It’s not our fault, SQL Server comes with triggers built in!</li>
<p><BR>
</ul>
<p>I have paraphrased in places to protect the guilty, but there are many many more where these came from which I might store up for another post at another time if it proves popular. Hope you enjoyed reading the conversations as much as I did having them!</p>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/zlC6XutAUdY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2011/11/top-5-third-party-quotes.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQLRelay: The Final Sprint</title>
		<link>http://sql.richarddouglas.co.uk/archive/2011/10/sqlrelay-the-final-sprint.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2011/10/sqlrelay-the-final-sprint.html#comments</comments>
		<pubDate>Thu, 06 Oct 2011 15:11:18 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[SQL Community]]></category>
		<category><![CDATA[SQLRelay]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[SQLBits]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=759</guid>
		<description><![CDATA[<p>The UK SQL community has never had so many events in such a short space of time. Last week there were three days of SQLBits and this week all 15 SQL User Groups have held a free event with each meeting having a session presented by a SQL Server MVP. This figure includes three user groups [...]]]></description>
			<content:encoded><![CDATA[<p>The UK SQL community has never had so many events in such a short space of time. Last week there were three days of SQLBits and this week all 15 SQL User Groups have held a free event with each meeting having a session presented by a SQL Server MVP. This figure includes three user groups (Cambridge, Essex and Maidenhead) who had their very first meetings this week, what a baptism of fire!</p>
<p>We’re now on the final straight and we enter Microsoft’s Cardinal Place offices in London where T-SQL guru Itzik Ben-Gan will be speaking. We have several prizes to give away by our sponsors including a Pass 2010 Summit DVD! Not only that but all the user group leaders are going to do a talk on “The A – Z of SQL”</p>
<p>I&#8217;d like to thank the whole team who have made this possible. As the leader of a new group it was all finalised by the time I had joined, but I do know how much hard work they had put in.</p>
<p>It promises to be a great evening of SQL Server, I hope to see some of you there!</p>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/v8QqWFiy-FI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2011/10/sqlrelay-the-final-sprint.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQLRelay: The Third Leg</title>
		<link>http://sql.richarddouglas.co.uk/archive/2011/10/sqlrelay-the-third-leg.html</link>
		<comments>http://sql.richarddouglas.co.uk/archive/2011/10/sqlrelay-the-third-leg.html#comments</comments>
		<pubDate>Wed, 05 Oct 2011 11:49:31 +0000</pubDate>
		<dc:creator>Richard Douglas</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[SQL Community]]></category>
		<category><![CDATA[SQLRelay]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>

		<guid isPermaLink="false">http://sql.richarddouglas.co.uk/?p=756</guid>
		<description><![CDATA[<p>Feedback from the second leg of SQLRelay was very positive indeed. The attendees from my Maidenhead group were very impressed and glad they had a user group near them. Navigate to http://www.sqlserverfaq.com to see if there is a user group near you, if there isn’t we can help you start one!</p>
<p>You can see the lead up [...]]]></description>
			<content:encoded><![CDATA[<p>Feedback from the second leg of SQLRelay was very positive indeed. The attendees from my Maidenhead group were very impressed and glad they had a user group near them. Navigate to <a href="http://www.sqlserverfaq.com">http://www.sqlserverfaq.com</a> to see if there is a user group near you, if there isn’t we can help you start one!</p>
<p>You can see the lead up to all the action to all six meetings being held tonight by following the twitter hash tag #SQLRelay:<br />
<a href="http://sqlserverfaq.com/default.aspx?item=event&amp;itemid=326" target="_blank">Cambridge</a><br />
<a href="http://sqlserverfaq.com/default.aspx?item=event&amp;itemid=295" target="_blank">Cardiff</a><br />
<a href="http://sqlserverfaq.com/default.aspx?item=event&amp;itemid=311"><strong>Edinburgh</strong></a>  <br />
<a href="http://sqlserverfaq.com/default.aspx?item=event&amp;itemid=327"><strong>Essex</strong></a> <br />
<a href="http://sqlserverfaq.com/default.aspx?item=event&amp;itemid=323"><strong>Exeter</strong></a><br />
<a href="http://sqlserverfaq.com/default.aspx?item=event&amp;itemid=309" target="_blank">Southampton</a></p>
<p>There are still places available and to help you make up your mind here are the agendas:</p>
<h3><strong>Cambridgeshire SQL Server User Group&#8217;s inaugural meeting</strong></h3>
<p>Come along to see the birth! For expanded details of this event please visit <a href="http://sqlcambs.org.uk">sqlcambs.org.uk</a></p>
<p><strong>Agenda</strong></p>
<p><strong>18:00 &#8211; 18:30 &#8211; Introduction and Networking</strong></p>
<p><strong>18:30 &#8211; 19:30 &#8211; Jen Stirrup -<strong> </strong></strong><strong>iPad and PowerPivot &#8211; Mobile Business Intelligence in Action</strong><strong><strong> </strong> </strong></p>
<p><strong>19:30 &#8211; 19:50 &#8211; Break<br />
</strong>More time to Network and Food</p>
<p><strong>19:50 &#8211; 20:50 &#8211; Allan Mitchell</strong> &#8211; <strong>Data Quality for Business &#8211; What Denali brings</strong></p>
<p><strong>20:50 &#8211; 21:00 &#8211; Feedback and Close</strong></p>
<p><strong>Location</strong>: Red Gate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ</p>
<p><a href="http://www.red-gate.com/our-company/about/directions">http://www.red-gate.com/our-company/about/directions</a></p>
<h3>Cardiff User Group Meeting with Satya SK Jayanty(MVP)</h3>
<p><strong>As part of the SQLRelay events the South Wales SQL Server UG welcomes Satya K Jayanty (MVP)</strong></p>
<p>Satya Shyam K Jayanty is an Independent consultant working as a Principal Architect and Director for D Bi A Solutions Limited based in the UK.</p>
<p>He has a Master&#8217;s degree in Economics and Commerce from Osmania University, Hyderabad (India) and an MBA &#8211; Systems from the University of the West of England.</p>
<p>Satya started his career in the IT industry in 1992, and he has been working with SQL Server (from version 4.2) for more than 15 years and has been an accomplished Microsoft SQL Server MVP for the last six years.</p>
<p>Satya is a frequent speaker and SME volunteer at Microsoft Tech-Ed, SQL PASS, SQL Bits, Scottish Area SQL Server user group. He maintains a blog at <a href="http://www.sqlserver-qa.net/">sqlserver-qa.net</a> and <a href="http://www.sqlserver-qa.net/">sql-server-performance.com</a>.</p>
<p><strong>SQL Server upgrade 2000/2005 to 2008/R2: best practices</strong></p>
<p>Upgrade of the data platform is no simple task, but using best practices you can accomplish the mission!</p>
<p>We will go through the SQL Server 2008 upgrade process, how to identify the issues to resolve and notes from the field. The session will cover the essential phases and steps involved in upgrading SQL Server 2000, SQL Server 2005, and SQL Server 2008 to SQL Server 2008 R2 by using best practices and available resources.</p>
<p>We will cover the complete upgrade cycle, including the preparation tasks, upgrade tasks, and post-upgrade tasks. This session will also cover notes on upgrading a stand-alone instance; upgrading a clustered instance; upgrading instances involved in mirroring, log shipping, and replication; feature-specific considerations; and recommended tools for a successful upgrade.</p>
<p><strong>SQL Server Integration Services</strong></p>
<p>SSIS has many diverse uses on ETL, take from simple data import/export to advanced techniques on quality/transformation and Integration Services.</p>
<p>In this talk we will go through the best practices which have been developed/implemented/followed over the years. Important areas covered include performance, connectivity, logging and troubleshooting, and deployment.</p>
<p><strong> </strong></p>
<p><strong>General Information</strong></p>
<p>On arrival please sign in at the reception desk and wait in the foyer to be taken up to the room.</p>
<p>One of the main objectives of the user groups is to introduce new speakers, and here at Cardiff we&#8217;re always looking for to support anyone who has something interesting to share with the SQL Community. We&#8217;ll give you all the encouragement and support you need. We&#8217;re really flexible so if you only want to speak for a shorter amount of time, say 15 mins then this is perfectly fine. If you&#8217;ve be thinking about this, then please get in touch with myself, <a href="mailto:adam@informativa.co.uk">Adam Morton</a>.</p>
<p>You can keep up to date with the South Wales SQL Server User Group on twitter at <a href="http://twitter.com/SQLServerUG">twitter.com/SQLServerUG</a> follow this user to hear the latest event news.</p>
<h3>Scottish Area SQL Server User Group with Andrew Fryer from Microsoft and Martin Bell(MVP)</h3>
<p>We will also have the usual food and prize draws!<br />
<strong>Agenda</strong><br />
18:00 &#8211; 18:30 &#8211; <strong>Introduction and Networking<br />
</strong><br />
18:30 &#8211; 19:30 &#8211; <strong>BI features in Denali<br />
</strong>Denali is the next release of SQL Server. There are some great new features lined up to be delivered and Andrew will look into what enhancements to the BI stack are on the release schedule, such as BISM and Project Crescent</p>
<p><strong>Andrew Fryer<br />
</strong>Andrew is a technical evangelist at Microsoft UK. This means that he spends time explaining the future to IT Professionals who do data management and data centre administration. As there are just under a million IT Professionals in the UK, then to reach all of these requires him spending a lot of time on line: updating his blog, doing webcasts, and the usual social media channels. However Andrew loves going to user groups and community events to swap stories and help people get the most out of the Microsoft technologies.</p>
<p>19:30 &#8211; 19:50 &#8211; <strong>Break<br />
</strong>More time to Network and Food<br />
19:50 &#8211; 20:50 &#8211; <strong>What&#8217;s new for developers in Denali</strong><br />
The next version of SQL Server is shaping up to be a huge release and is going to have some great new features for developers. This include changes to the SQL Server Developer Tools codename Juneau. This session will look at this exciting new release with demos of features available in CTP3.<br />
<strong>Martin Bell</strong><br />
Martin is that suave and sophisticated SQL Server User Group leader who runs the SQL Server User Groups in Edinburgh and Leeds. On top of that he is one of the organisers of the biggest SQL Server conference in Europe &#8211; SQLBits. This takes place twice a year at different locations in the UK.<br />
20:50 &#8211; 21:00 &#8211; <strong>Feedback, Prize Draw and Close</strong></p>
<p><strong><strong>Location:</strong></strong></p>
<p>Microsoft Office at Waverley Gate</p>
<p><a href="http://www.microsoft.com/uk/about/map-edinburgh.mspx">http://www.microsoft.com/uk/about/map-edinburgh.mspx</a></p>
<p>Registration will be necessary as I have to submit registrations to Microsoft on Thursday morning.</p>
<h3><strong>Essex SQL Server User Group&#8217;s inaugural meeting with Dave Ballantyne and Chris Testa-O&#8217;Neill (MVP)</strong></h3>
<p>Come along to see the birth!</p>
<p><strong>Agenda</strong></p>
<p><strong>18:00 &#8211; 18:30 &#8211; Introduction and Networking</strong></p>
<p><strong>18:30 &#8211; 19:30 &#8211; Dave Ballantyne</strong></p>
<p><strong>Cursors are evil, and shouldn&#8217;t be used</strong></p>
<p>That&#8217;s frequent advice given on forums when asking about performance problems. Its correct advice, but how do you go about removing cursors and what do you replace them with? That&#8217;s the tricky part! By deconstructing a cursor based routine, Dave will demonstrate a number of TSQL techniques and how they can be applied to generate a new routine with significantly less overhead.</p>
<p><strong>Dave Ballantyne</strong> is a freelance SQLServer database developer/designer and has been working in the IT field for over 20 years. Tuning and optimizing SQLServer processes is his particular talent. Dave regularly contributes to online forums and is a regular speaker at UK events such as SQL Bits and user groups. He also is founder of the Kent .NET/SqlServer user group.</p>
<p><strong>19:30 &#8211; 19:50 &#8211; Break<br />
</strong>More time to Network and Food</p>
<p><strong>19:50 &#8211; 20:50 &#8211; Chris Testa-O&#8217;Neill</strong></p>
<p><strong>We have control! &#8211; Controlling Resources in SQL Server</strong></p>
<p>Since SQL Server 2008, you can control environments using Policy based management and with the Resource Governor. This session will demonstrate the implementation and workings of Policy based management and with the Resource Governor and provide you compelling reasons why these tools can be used to enforce standards and control SQL Server hardware in your environments</p>
<p><strong>Chris Testa-O&#8217;Neill</strong> is a SQL Server Microsoft Most Valuable Professional (MVP) and a Senior Consultant at Coeo specialising in SQL Server Business Intelligence. He is also a technical author, working on courses for SQL Server 2008 R2 with Microsoft Learning and advising on the SQL Server Denali curriculum. Chris runs the Manchester SQL Server User Group and is an organiser for SQLBits. Chris has spoken at a range of events including user groups in the UK and Adelaide, Australia, SQLBits, the MCT Conference and this year&#8217;s SQLPASS. Chris is a Microsoft Certified Trainer (MCT), MCDBA, MCTS and MCITP in SQL Server.</p>
<p><strong>20:50 &#8211; 21:00 &#8211; Feedback and Close</strong></p>
<p><strong>Location</strong>: Xchanging, Endeavour Drive, Basildon, SS14 3WF<br />
<a href="http://www.xchanging.com/Locations/UK.html">http://www.xchanging.com/Locations/UK.html</a></p>
<h3>SQLSouthWest User Group Meeting with Tony Rogerson (MVP)</h3>
<p>Start : 17:00 (for 17:30 start)</p>
<p><strong>SQLSouthWest User Group Meeting with Tony Rogerson (MVP)</strong></p>
<p>Tony will talk about High Availability in SQL Denali, he will also cover backgrounder HA topics so it will be relevant to other editions too, but all demos will be in SQL Denali and concentrating on the new features. In his second session of the evening he will talk about what SSD&#8217;s mean to database professionals and the game changer that they are creating.</p>
<p><a href="http://sqlsouthwest.co.uk/meetings.htm">http://sqlsouthwest.co.uk/meetings.htm</a></p>
<h3><strong>Southampton &#8211; Justin Langford presenting on Denali and Nicholas Colebourn presenting Designing tables for scale.</strong></h3>
<p> </p>
<p>Network, learn, ask a question, meet other folk, get fed &#8211; these are all things that happen at user group events. These events are a really great opportunity to socialise in an informal learning experience.</p>
<p>Remember to tell your friends and the people you work with; make sure you register as soon as you can.</p>
<p><strong> </strong></p>
<p><strong>6.00pm &#8211; 6.30pm</strong> Registration and networking<br />
Meet and greet. (Eat biscuits)<br />
<strong>6.30pm &#8211; 6.40pm</strong>  Introduction.</p>
<p><strong>6.40pm &#8211; 6.50pm </strong>Lightning Speakers</p>
<p><strong>6.50pm &#8211; 7.40pm </strong><strong>Nicholas Colebourn &#8211; </strong><strong>Designing tables for scale &#8211; data typing, data compression and table partitioning with Nick Coleburn<br />
</strong>Good database design is the foundation of building robust, scalable database systems. Optimising your table design can make or break a database. In this session Nick will cover data typing, utilising SQL Server data compression and table partitioning, and how optimising the design of these technologies can substantially reduce disk I/O, memory usage and improve overall system performance.</p>
<p><strong></strong></p>
<p><strong>7.40pm &#8211; 8.10pm </strong>SQL Supper</p>
<p>Eat Pizza and talk about everything SQL Server.</p>
<p><strong>8.10 pm &#8211; 9.00pm <a href="http://sqlbits.com/Speakers/Justin_Langford">Justin Langford</a> talking about the latest release of SQL Server (Denali)</strong></p>
<p><strong>Directions:</strong></p>
<p>Please use the entrance on Alba Road.  The signs should point you in the right direction.</p>
<h4>The relay so far:</h4>
<p><a href="http://sql.richarddouglas.co.uk/archive/2011/10/sqlrelay-the-first-leg.html" target="_blank">SQLRelay: The First Leg</a></p>
<p><a href="http://sql.richarddouglas.co.uk/archive/2011/10/sqlrelay-the-second-leg.html" target="_blank">SQL Relay: The Second Leg</a></p>
<p>Join in tomorrow as we prepare to handover for the sprint down the final straight!</p>
<img src="http://feeds.feedburner.com/~r/co/LJKyU/~4/SXQr4VEyJzk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sql.richarddouglas.co.uk/archive/2011/10/sqlrelay-the-third-leg.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

