Pages

Thursday 9 December 2010

Confessions of the User Group (dis)Organiser

Yesterday was the first Southampton SQL Server User Group and I just wanted to share some of my thoughts on how to arrange a successful one...

1) DON'T RUSH - Whatever you do, don't sit at work one day and think; I know, I'll start a UG, then pick the phone up and book a venue. Take your time, have a couple of months lead-up. This gives you time to organise and think of EVERYTHING.

2) DON'T LOOK AT A PICTURE OF THE VENUE AND THINK; THAT ROOM LOOKS OKAY - Visit the room. The size and shape of a small room can dictate the kind of UG that you can have. Is there going to be enough room to get a decent projection onto a wall or white-board? Can you move the chairs around and not affect the function of the room (blocking-off an area of the room)?

3) DON'T PUT DIRECTIONS TO VENUE UP THE DAY BEFORE THE EVENT - Put up directions or special instructions on the internet well in advance.

4) BRING A 4-WAY - Who knows where the power points are? There is a good chance there will not be power where you need power.

5) BELIEVE IN MURPHYS' LAW - If you can bring spare kit, just in case something goes wrong, then do it. What's the worst that can happen? You don't use it.

6) ORGANISE THE FOOD IN ADVANCE - As Murphy's Law states; what can go wrong will go wrong... Including my phone stopping working and managing to block my debit card when ordering food in a rush.

7) DON'T EXPECT PEOPLE THAT SAID THEY WOULD DEFINITELY TURN UP TO TURN UP - Random stuff happens; people say they can come, but life gets in the way. Always expect less people to turn up. Perhaps even 1/3 to 1/2 less.

And even if you don't manage to follow all these steps, it is still possible to have a really successful UG!

For the next UG, I have promised myself that I won't make the same mistakes again. I'll make a whole load of new ones!

Tuesday 7 December 2010

Parking to Southampton SQL Server User Group [Updated]



For those coming tomorrow, I'd thought I would just post up some details on where to park.
If you are driving towards Southampton down the Avenue, turn left onto Alma Road, then the next left. It should take you directly under my arrow.







Friday 19 November 2010

SQL Southampton - SQL Server User Group in Southampton 8th December [Updated 24/11/2010]

This is the second draft of the agenda - Keep your eyes peeled on http://www.sqlserverfaq.com and http://www.facebook.com/event.php?eid=108621982541648 for updates.


This is the first SQL Southampton User Group (Hoping it’s not the last) – A great opportunity to get together with your peers and discuss all things SQL.
I’ve stolen the nugget idea from another user group!

8th December at Avenue St Andrew's Church Southampton (In the Lounge)

6.30pm – 7:00pm Registration and Networking.
Meet and greet.

7:00pm – 7:15pm Welcome and Introduction - Mark Pryce-Maher Blog: http://tsqltidy.blogspot.com/ Twit: http://twitter.com/tsqltidy/
Brief introduction to the evening.

7.15pm – 8:00pm SQL CLR Demystified – Matt Whitfield Blog: http://www.atlantis-interactive.co.uk/blog/ Twit: http://twitter.com/atlantis_uk
An introductory session on CLR integration within SQL Server, looking at what is required for implementation of CLR types, aggregates, triggers, stored procedures and functions.
A few practical examples will also be covered, including some performance-based CLR implementations, as well as maintenance based ones.

8:00pm – 8:15pm BREAK: Light refreshments.
More time to network and ask questions...

8:15pm – 8:30pm Quick Look at Denali - Mark Pryce-Maher
As many demos as I can manage to do in 15 minutes...

8:30pm – 9.00pm - Round Table discussion and Nuggets (Self-help) - ALL
Take stock and get the latest news in the SQL Server field. This is also a great opportunity to ask any burning questions you have.

9.00pm... The End - Network or just slope off home.

There may also be prizes, courtesy of Atlantis Interactive... and a chance to play with Denali!!

Thursday 7 October 2010

Are you trying to tell me something...


This was on the fridge when I got home...

I think my wife was trying to tell me something, but I've not worked it out yet.


Whoop!! Whoop!! Site Down!!!

Just checked tsqltidy.com and it's down!
Grrrrr....

*Amendment:
DOH! It was my fault, some dodgy coding around a twitter feed.
Oh well. Wont do that again (for a few months!).

Wednesday 6 October 2010

Finding Non-SARGable queries

I was in Rob Farley's sessions at SQLBits when he was talking about: Understanding SARGability (to make your queries run faster)

It got me thinking....
Is there a way I can find out which SQL queries are doing table or index scans?
So I put some proof of concept code (POC) together.

SELECT top 10 text ,query_plan ,*
FROM sys.dm_exec_query_stats
CROSS APPLY sys.dm_exec_query_plan(sys.dm_exec_query_stats.plan_handle)
CROSS APPLY sys.dm_exec_sql_text (sql_handle)
WHERE
CONVERT(varchar(max), query_plan) like '<tablescan%'
OR
CONVERT(varchar(max), query_plan) like '<IndexScan%'
ORDER BY total_elapsed_time desc;

Its not a very sophisticated query (it only took a few minutes to write and yes, I agree, I should shred the xml instead of using a convert and like) but it shows the concept of querying the execution plans to get details of queries that has run (rather than the best way of getting the information).

It takes a while to run so don't go running it in LIVE, and might bring back some false positives - so please be careful with the results.


References:

Tuesday 5 October 2010

Gadget Show Top 5 Budget Mobile Phones

I've been trying to find this list all day and its nowhere on the Gadget Show website.

It's...

1) Samsung Genio Qwerty
2) LG KS365
3) Huawei U7510
4) INQ Mini 3g
5) Alcatel OT808

How to setup a MSSQL Server Management Studio (SSMS) 2008 New Query Template

It took me a small amount of Googling with Bing to find this post on Stack Overflow.

But it works for SQL 2008 r2 - apart from changing the paths slightly.

%Install Dir%:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\SqlWorkbenchProjectItems\Sql\SQLFile.sql

I cant work out why is there nothing on MSDN about this cool feature?
Or why is not part of the SQL templates.


References:
http://sqlsoundings.blogspot.com/2010/03/using-ssms-templates-for-fun-and-profit.html
http://msdn.microsoft.com/en-us/library/ms174169.aspx
http://stackoverflow.com/questions/593047/mssql-server-management-studio-ssms-2005-new-query-template

Sunday 15 August 2010

Microsoft Certified IT Professional: Database Administrator 2008

I’ve now passed both Microsoft certification exams for the MCITP: Database Administrator 2008 :

  • Exam 70-451: PRO: Designing Database Solutions and Data Access Using Microsoft SQL Server 2008
  • Exam 70-432: TS: Microsoft SQL Server 2008, Installation and Maintenance

As preparation for the 70-432 exam I got the following books:

I read all the MCTS Self-Paced Training Kit and actually enjoyed it (as much as you can enjoy reading a technical book – but it wasn’t as painful as Gallbladder surgery!) – I have to agree with some of the comments on Amazon that there are a few mistakes, but who hasn’t released code/documentation that didn’t need a few tweaks after it was released?

I have to make a special mention of SQL Server 2008 Administration: Real-World Skills for MCITP Certification and Beyond (Exams 70-432 and 70-450)- it’s the only book I found that covers the 70-450 exam!!!  In the appendix, there is a mapping of chapters to exam objectives so you only need to read the appropriate chapters.

After leaving the test centre having passing 70-432 with 960, I thought this exam felt much easier than the 70-433 exam.

I was (quickly) convinced (by my wife – Hello!) that I should just try and take the next exam straight away.  The odd thing about the Microsoft exams is you only need to get 700 – it doesn’t matter how well you do, you still get the qualification in this case  ‘just enough is good enough’ .

So, just a few days after passing 70-432, I took  70-451 and passed with 929. 

I was surprised by how easy the MCITP: Database Administrator 2008 was compared with the MCITP: Database Developer 2008.  There were (in total) 84 questions for the Database Administrator and 128 for the Database Developer – a big difference.  

It’s not the number of questions, although the more questions, the more sweating you do.  It’s the breadth of the content.  There was so much to learn and remember.  I think Brent Ozar conveyed it really well in his blog post: MCM Prep Week: Microsoft Exams 70-433 and 70-451

There is only the MCITP: Business Intelligence Developer 2008 to go, then I’ll have the whole set! :-)

Friday 9 July 2010

MCITP: Database Developer 2008

In May I passed 70-433 and in June I passed 70-451 . Which means I can call myself a Microsoft Certified IT Professional (MCITP)!!!



I started in Feb/March working through two books;


MCTS Self-Paced Training Kit (Exam 70-433): Microsoft SQL Server 2008 - Database Development Book/DVD Package and The Real MCTS SQL Server 2008 Exam 70-433 Prep Kit: Database Design


The books cover a huge range of subjects; the MS press book covered more areas and was in some ways better but was also tedious at times - often sending me off for a good nights' kip! The Prep Kit was written in (my opinion) a nicer style for the user, but didn't cover nearly enough of the exam.

I read the Prep-Kit book first, took a practice exam and scored very low! I bought the MS Press book and found this filled-in the gaps and reinforced what I learnt from the first book. I found the different writing styles very useful as it didnt feel like I was reading the same book twice.



I took 70-433 and scored 1000.



There is no official exam prep for the 70-451 exam, so I took it 2 weeks after passing the first exam. The exam was tough, very tough! I thought I'd failed. When I clicked 'finish' I closed my eyes as I really thought I would have to tell everyone at work I'd failed.



But to my amazement, I passed with 865! I spent the next 4 hours in shock. I had a hospital appointment later that day and my resting heart rate was over 100 bpm!



Now for a little rest before I start on the MCITP: Database Administrator 2008!



Thursday 8 July 2010

Website updates...

I'm now working on a few updates for the T-SQL Tidy website while I take a break between Microsoft Certification exams.

There aren't any (huge) increases in functionality. I'll just fixed problems that annoy me. :-)

Fixes;
New menu - I did the old one in a rush so it didn't really work very well.
Updated blog feed - I sorted out the problems with the formatting.
Twitter account - I created a twitter account (Apparently social networking is the next big thing!)

Friday 12 February 2010

SQLBits (episode) VI - Westminster Strikes Back...

After the hugely successful SQLBits V (in Newport), SQLBits VI has been announced today. It's going to be held at the Church House Conference Centre, London on the 16th April 2010.

Check out the SQLBits.com website for more details.

Wednesday 13 January 2010

Format T-SQL as HTML and more...

I've just added some new features to the T-SQL Tidy website.


  • Format the T-SQL into HTML (for blogs and web sites).

  • More formatting options than you can shake a stick at.

  • New Web Service call "ParseSQLwithOptions". http://www.tsqltidy.com/SQLTidy.asmx?op=ParseSQLwithOptions


  • Special thanks to Jean-Claude Manoli for the HTML formatting code website:http://www.manoli.net/csharpformat/