Categories
Rambling SQL Server

Contest: Name My Chicken

sqlchicken So in my first post I explained that my moniker was inspired by the rubber chicken hanging on the wall in my cube. After realizing that he’s now become an integral part of the office in that we all squeeze him whenever something breaks its time he had a name. That’s where you guys come in!

My chicken needs a name. Anything. SQL-related is cool but it doesn’t really matter as long as its befitting its awesomeness. After all entries are in we here in the office will go over the entries and decide a winner. Unfortunately I don’t have the backing of Godaddy.com on this one like the SQL Rap Contest so sadly I don’t have any prizes, just bragging rights. I’ll set the deadline to two weeks from today (Friday June 12th). Feel free to submit entries here on this blog or DM them to me on Twitter.

Categories
Presentation Review SQL Server Syndicated Syndication

Review: Quest POTW webcast – Getting Started with SQL Server Management Studio

Very Niiice! Today was Quest Software’s bi-weekly Pain-of-the-Week webcast and this week’s topic was Getting Started with SQL Server Management Studio. We were lucky enough to have not one, but two SQL rock stars presenting today in Brent Ozar (Blog | Twitter) and Michelle Ufford (Blog | Twitter).

Brent kicked it off with a quick intro and then handed it over to Michelle to walk us through the basics such as creating a database, adding tables/columns/objects/etc as well as going through all the options available such as creating Maintenance Plans, creating backups from within SSMS, and the SQL Server Agent. They even demoed some of the nice little tools available in the latest SSMS such as activity monitor and the built-in reports. A question was raised about if the new SSMS offered a view equivalent to the taskpad view in SQL 2000 Enterprise Manager and the answer is…kind of. If you’re using SSMS 2008 (which you should be since you can install it without having to have a SQL 2008 instance) that view has been replaced by the built-in reports. You can access the reports by right-clicking your Instance or even a database itself, go to Reports, go to Standard Reports and select which report you’d like to view. And like we learned yesterday, some of these reports come from our default trace! Another fun tidbit of information learned from this presentation was that if you choose to (granted this isn’t recommended) right-click a table and select the Edit Top 200 records, it opens the records in an Access-like grid and allows you to change data directly. But this is cool and useful, why isn’t it recommended? Well when you open records like this it puts a lock on those records so nobody else can get to them. So in a production environment clearly this is a no-no but at least you know the feature’s there. For the record the recommended method would be to do something like this:

UPDATE table_name
SET column1=value, column2=value2,...
WHERE some_column=some_value

 

After Michelle wrapped up our tour of SSMS, Brent then gave us a quick tour of Quest Software’s Toad for SQL Server product. This is a pretty slick product that is aimed towards the development community. It gives you basically the same things as SSMS for the most part but it also gives you so much more. For instance you are able to do a query and re-sort your results using column sorting as you would in Excel (i.e. click column name to change order). You can also do filtering via this method as well. What’s the big deal about this? Well every time you change your ordering you don’t have to make a roundtrip to the server to re-query your data, it holds everything locally so its speedy. This is where Borat pops up and says “very niiiiiiiiice”. There was also some slick thing it did with pivots but that was the point where my desktop froze so all I got was audio from the phone call, though the people commenting on Twitter seemed to like…whatever it is it did. But don’t take my word for it, try it out yourself and go download a 30-day demo of the product at Quest’s website!

 

That pretty much summed up the webcast this week! They’ll be doing a follow-up webcast on June 11th with more advanced tips as well. you can register for that webcast here. If this post didn’t quite do it for you, you can catch all POTW webcasts on-demand over at Quest’s website. Today’s presentation should be up in a few days.

Categories
PASS Review SIG SQL Server Syndicated Syndication

PASS DBA SIG: Understanding the Default Trace

Today during lunch was the monthly PASS webcast for the Database Administration SIG. This month’s topic was understanding the default trace and was presented by Jonathan Kehayias (BLOG Twitter). Jonathan did a great job as he very clearly explained the nuances of the default trace (i.e. what it really is, how you query it, what’s it do, etc.).

The presentation files are available at his blog. If you get a chance definitely check out the on-demand replay which should be available next week. On a side note this is my second or third one of these I’ve attended and I absolutely love it! I think PASS is doing a great job providing this sort of on-going training for the community and I also tip my hat to people like Jonathan who are willing to take time out of their day to present.

Categories
Review SSWUG Syndicated Syndication

SSWUG Virtual Conference: Follow-up Thoughts


Ok a few weeks ago was SSWUG‘s second virtual conference and my first experience with the virtual conference experience. Granted this review is a bit late but better than never I suppose. First off I have to tip my hat off to Stephen Wynkoop, Chris Shaw and the rest of the folks at SSWUG that put this event together.

First off this conference was a fantastic value at only $99 for 3 days of high quality SQL training. For those who haven’t experienced a virtual conference before, it is layed out much like a real conference you would attend. You enter the conference and are placed in a lobby-type page that leads to either sessions lobby, exhibit hall or on demand section (sessions are available on demand after the conference). Entering the sessions lobby lets you select which conference you registered for. This conference offered a track for SQL Server, Business Intelligence, Sharepoint Once inside you are presented with several rooms to choose from. Like a real conference you choose which session you want to attend in which room.

The sessions are pre-recorded videos and while you’re watching the session there is also a chat room dedicated to that room. During the session the speaker is in the chat room answering any questions anyone has regarding the content. I thought this was great as normally you wouldn’t have this sort of interaction with the presenter. The other great thing is that sometimes the conversation in the chat would spin off on another great topic/point. Granted the downside to this format is that your attention is drawn away from the video but that’s the beauty of them being on demand!
The other great communication tool that was implemented in to this was Twitter. SSWUG placed a Twitter feed in the main lobby that allowed those not on Twitter to see what was going on with those Tweeting about the conference. This was done by encouraging participants to tag their tweets using the #sswugvc hashtag. I’m now a big Twitter user so this was a major plus for me. Another place to interact was, of all places, the vendor booths! During this conference it seems like the Quest Software booth was the place to be as most of the people I interact with on Twitter made their way over there. In addition to hocking Quest products in the booth I actually got to know people a little better like Tim and Lori Edwards, Brent Ozar, Chuck Boyce Jr. and Tom LaRock to name a few.
At noon everyday there was a part of the conference that had to be, hands-down, one of my favorite parts and that was the live Q & A sessions with Stephen Wynkoop and Chris Shaw. They would have a general topic of discussion and take questions live over the chat room and Twitter. It’s great seeing two major players in the SQL Community discussing their thoughts on things. Plus with the live aspect of things we could ask questions and the conversation could go in various directions. Another fun thing that came out of the live talks was the keynote bingo that I came up with on the last day. I think everyone that participated had fun with that and funnily enough Stephen and Chris got in to it as well as they purposely started mentioning things from the card towards the end of the final live session for kicks.
All in all I thought this was an absolute blast! Granted I was watching the sessions in my office and got sidetracked every so often with work but that’s also the beauty of it. Your organization still has you around so you’re still work-functional (sorry) but you’re also getting your training out of it. If you miss something you can either catch the afternoon replay session or just take advantage of the on-demand option or order the DVD from them which includes all demos, scripts, videos, etc. The other thing that this conference made me realize was the true power of social networking specifically Twitter. Out of this conference I got a slew of followers and managed to cement relationships with other SQL professionals. Plus out of Twitter came the infamous SQL Editions onlsaught of Tweets which I believe actually originated from the people hanging out in the Quest booth!
A huge thanks goes out to SSWUG and all the vendors who sponsored, an event like that couldn’t be put on without your support. Events likes this are also key when the economy is in the state it is in. For me, sadly, I don’t think I’ll be able to attend PASS this year due to travel restrictions with our organization right now but hopefully I’ll be able to attend next year. Until then virtual conferences like this will be key to my on-going training as well as attending regional and local events such as SQL Saturday and local user group meetings.
Categories
Review SQL Server Syndicated Syndication user group

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.

Categories
Syndicated Syndication

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.

Categories
Syndicated Syndication

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.

Categories
Poll PowerShell SQL Server Syndicated Syndication

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.

Categories
Tips vmware

How to Kill a Stuck VM in ESX 3.5

This morning my VM’s decided to become schizophrenic and stop opening consoles. Virtual Center showed the VM’s as still running but some weren’t responding to pings, some were but all had this error when trying to connect via console:

error connecting to vmfs volumes

Ok, well luckily this was a test environment VM so I tried hard restarting it and I got this lovely message:

Operation failed since another task is in progress.

Really?!? Crap, ok time to head to the oracle of all knowledge Google and BLAM-O I found this thread in the VMware Communities forum with my solution. I learned some nice new things including nice commands via the vmware-cmd as well as the vm-support commands which ended up helping me in the end. Here’s the solution from the thread, thanks to users Duncan Epping and Kim Rubeck for these commands/tips.

vmware-cmd -l = list all the vm’s running, copy and paste the full path to the below command.vmware-cmd <config> stop trysoft
if trysoft doesn’t work you could always kill the process ->
ps -ef | more
find the proces related to the world
kill it.

ps -auxwww | grep -i <vmname>

Find the PID and kill -9 pid

or

vm-support -x – to list vmid’s
vm-support -X <vmid> to kill it.

For the record my solution wound up being identifying the vm’s PID and killing the process directly. After doing that Virtual Center shows the VM as not running. Once that happens simply power it back up like you normally would.

 

Categories
Tips Windows

Got an Installation Stuck in a Loop?

Today I was troubleshooting an issue where an MSI is constantly trying to install itself on the server but cannot find the files needed to complete the install. The errors encountered were the following:

Source: MsiInstaller
Event ID: 1001

Detection of product ‘{GUID}’, feature ‘{program}’ failed during request for component ‘{GUID}’

What happened here was that when the MSI did its install it copied temporary install files in a folder. I believe we ran out of space on that particular server during this time thus throwing the installer for a loop of confusion. So how do you clean up this mess? Well Microsoft offers a tool for free that takes care of situations like these. It’s called the Windows Installer CleanUp Utility.

Here’s the description from the KB article on what it does:

When you are working on your computer and installing a new program, the installation suddenly fails. Now you are left with a partly installed program. You try to install the program again, but you are unsuccessful. Or, maybe you have problems trying to remove an old program because the installation files are corrupted. Do not worry. Windows Installer CleanUp Utility might be able to help. You can use the utility to remove installation information for programs that were installed by using Windows Installer. Be aware that Windows Installer CleanUp Utility will not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall over.

After you run the utility, give your machine a restart and try to reinstall the troubled application.