Archive for the ‘Syndicated’ Category.

Tampa SSUG 5/19/09 Review

Tuesday night we had our monthly SSUG. Our special guest this month was Jack Corbett (aka unclebiguns) joining us from Orlando. Jack is a software developer for New Tribes Mission in Orlando. For his take on the evening check out his blog entry on the night.

We kicked off the night with a discussion I led about social networking. As most discussions tend to lead, the topic dominator was Twitter. A few of us shared how Twitter has managed to help us in various facets of our job be it job opportunities, problem resolution or just general networking. A few of us in the audience are already on Twitter such as Jonathan Kehayias, Jack Corbett, Pam Shaw, and Steve Turner. Besides Twitter we also covered sites such as LinkedIn. LinkedIn was specifically mentioned as helping people find jobs. One member in attendance shared with us that he actually landed his current position because of Linked in which shows that social networking does work! One new thing I did learn out of this conversation was something called MSDN Social which I’ll have to check out. Thanks to Travis Page for pointing this one out to us.

Next up was Jack’s talk on SQL Server Profiler basics. I thought I knew enough about profiler but boy was I wrong! What’s funny is that Jack asked the room how many of us currently use profiler as part of our DBA arsenal. Only about a quarter of those in attendance raised their hands. He followed up by asking how many of us knew that SQL Server 2005/2008 had a trace running by default on install and even less hands went up. This is pretty surprising considering its a feature specifically built in to make it easier for us DBA’s to do performance analysis. Considering Extended Events is the next “big thing” in this arena coming out of the Redmond camp for SQL Server I think either we need to blog more about these sorts of things or Microsoft better come up with a Mojave Trace profiler and say “surprise, its really SQL 2005!”. Anyhow back on track…another thing I learned was that the profiler takes wildcards. Yes, that’s right, you trace on ‘ADv%’ or ‘%acon’. I thought this was pretty cool.

Another thing that’s new in 2005 Profiler (thankfully, since this particular issue drives me nuts) is the ability to pause a trace mid-stream, modify your trace values, and continue the trace without losing any of your previous data already collected. Speaking of pausing, a button that I just never noticed all this time was right up top (Auto Scroll) that stops the profiler from skipping to the latest data. I don’t know how many times I’ve been staring at the data scrolling by, see what I think is a problem query, click on it and by the time I do the screen rolls over two or three times so I have to go back and hunt for that line. In the words of Charles Barkley, “just turrr-ible”.

During the presentation portion where we were discussing dissecting deadlock issues, someone mentioned that one time they had a deadlock issue but it wasn’t showing up properly when they traced it using the 2005 profiler. Jonathan Kehayias enlightened us that mutli-deadlock victims won’t show in 2005 profiler and that this situation is common in parallelism issues (which this guy had). The 2008 profiler, on the other hand, does handle that issue and display it properly. The next tip I picked up and can’t wait to use was the fact that with 2005 profiler you do correlation of data between profiler and performance monitor. In order to do this you need to have started and ended both with scheduled times. Another note is the Counter Log from perfmon needs to be in Binary File type in order for this to work. Once you have your traces done go to File menu, and save your profiler trace to a file. Then open that trace file. Once its open you should be able to go to File menu and select Import Data. Navigate to where you saved your perfmon trace and open it. Once you have selected it you will see a graph overlayed underneath your trace. Now if you click anywhere on that graph you will get a line that shows exactly which point in your profiler trace that performance spike happened so you can see exactly which SQL is causing (if any) problems! Click on the image above for an example of this.
Overall I thought this was a great meeting. We had a packed house and good discussion and tips. Personally I feel I even got a little more out of it than usual thanks to social networking. Prior to Jack’s arrival for our meeting he and I have been interacting on Twitter so it made it a little easier to meet him for the first time which was pretty cool. Next month I’m slated to do a presentation on Policy Based Management so I’m pretty excited for that. Another exciting announcement is that apparently we’re getting Kevin Kline to come speak at our group which should be really awesome.

Tampa Bay SQL User Group Meeting tomorrow night!

Tampa Bay SQL User Group

Meeting starts at 6:30 pm. Directions to meeting

Date: 5/19/2009
Topic: Getting Started with SQL Server Profiler
Speakers: Jack Corbett
Location: Franklin Templeton Buidling
Description:
Jack Corbett will present Getting Started with SQL Server Profiler. We will earn how to use SQL Server Profiler to troubleshoot, audit, and tune your SQL Server. This will include creating custom templates, integrating with Performance Monitor data, and creating scripts for creating server-side traces.

Jack has been working with SQL Server since 1999 and has worked with versions 6.5 – 2005. He is experienced in VB 6 and .NET (ASP.NET, VB.NET, C#). He is currently working as a Software Developer for New Tribes Mission (www.ntm.org).

He has spoken at OPASS and SQLSaturday #8 – Orlando, written 4 articles for SQLServerCentral and is one of the more active forum participants. He is also the author of a video series on Profiler available on JumpstartTV. Check out his blog at: http://www.wiseman-wiseguy.blogspot.com.

Got Corruption?

So today I’ve been dealing with one hellacious case of database corruption and thanks to the beauty of social networking I was able to get help from SQL Jedi-master Paul Randal. I’ll post my entire in an upcoming post but just wanted to share a new trick I learned. Paul posted an article tonight (thanks to my situation) about how to get back all the errors generated by your corrupted database via DBCC CHECKDB if you have more than 1,000 errors. This method involves using the osql utility. Go check out his article and stay tuned for the thrilling saga of what NOT to do with a database.

PowerShell: Giving in to the Inevitable?


Here’s a quick question posed to my technical brethren: Have you drank the PowerShell Kool-Aid yet?

I’ve sat back and tested the waters here and there and I see that you can do some pretty cool stuff with it but I’m an admitted GUI lover at the moment so what does this buy me? This topic comes on the heels of the Microsoft Tech-Ed keynote and the fact that PowerShell scripts will now be generated on-the-fly ala SQL Server Management Studio did for T-SQL (Thanks Brent Ozar for pointing this out). I’ll admit I have learned quite a lot just in T-SQL by using that Script To function but will having this power in PowerShell really do much for me? What are your thoughts? Comment your techy hearts out.

SQL Rap by DJ Majik Poultry

Yo…check it. I’m sittin’ here chillin with my Tweetdeck rollin’
When I get word of a SQL Rap contest, the illest rhymes we be extollin’
What’s up for grabs is an iPod Touch
Whatcha gotta do? Well, it ain’t much
Cook up the illest rhymes and sell em like a 3rd party tool
And this first rhyme I’m spittin is aimed at SQLFool

Go-daddy, Go-momma don’t matter the sexI suck at this
This contest brings the baddest DBA’s like an ill-formed Index
What you and Ward started, like Ma$e can’t be stopped
These other sucka emcees are just another table my T-SQL’s gonna drop

Now Ward, aka the SQLTwit
Ready yourself for these rhymes I’m about to spit

You live in the woods, probably pickin berries
Since you’re backwoods I don’t wanna make this too complex like queries
Your lyrical rap styles are tuned like fine code
I heard you can ask for the BrentO discount when purchasing Quest Toad

Speaking of Brent O, his raps are well taken
Damn rapping about him now makes me crave #bacon
He looks like the SQL world’s Tina Fey
Next time you drop by Twitter, drop him a line and say ‘HEYYYY’

My VM snapshots are wrapping up from their orphaned state madness
Sorry to leave you guys with much lyrical sadness
These rhymes are whack but my skills are finger lickin’
So peace to your mothers, a love note from the SQL Chicken!