Welcome to EMC Consulting Blogs Sign in | Join | Help

SSIS Junkie

Query Analyzer or Management Studio?

Lately I’ve been working on a SQL2000 project and its afforded me the opportunity to get re-aquainted with the granddaddy of SQL Server query tools – Query Analyzer. For those that don’t know, Query Analyzer (QA) was the query tool provided with SQL Server up until SQL Server 2000; in SQL Server 2005 it was superceded by SQL Server Management Studio (SSMS).

Having been ensconced in SSMS for about four years now I’d forgotten all about QA but I do recall a few people lamenting its disappearance in SQL Server 2005 hence I was eager to compare it to SSMS and see which i preferred. Well after using QA for over a month now I can categorically state that I prefer SSMS any day of the week and in this blog entry I’ll explain why. Here we go…

The main difference will probably seem ridiculously insignificant to most but to me its made a huge impact and the extent to which its made an impact was only highlighted when I used QA again. In SSMS pressing CTRL-TAB will display the last query window that you used, in QA CTRL-TAB will cycle through the windows in the order in which they were opened.
Like I said, sounds insignificant, right? Well, the change is subtle but the impact is great for a guy like me that prefers to use keyboard shortcuts rather than reach for the mouse. Using QA nowadays does actually wind me up simply because of the lack of CTRL-TAB behaviour that I have become accustomed to in SSMS.
Object Explorer in SSMS displays much more information than QA’s Object Browser. Here are the side-by-side screenshots of the two, displaying information for the same table (SSMS’s Object Explorer is on the left).
SSMS-ObjExp         QA-ObjExp

Some things for you to notice:

  • We get a visual indicator of which columns are part of the primary key, part of a foreign key, or neither
  • We get more information about indexes – we know whether they are clustered or non-clustered, unique or non-unique
  • Keys are listed explicitly rather than being listed as constraints

In addition to better information about tables in SSMS we also get told whether a stored procedure has a default or not; and user defined functions are split out into table-valued functions and scalar functions.

All in all the information presented in SSMS’s Object Explorer is a huge leap forward from QA’s Object Browser.

In SQL Server 2000 much of the information we required had to be gotten through a separate tool – SQL Server Enterprise Manager. In SQL Server 2005 all of that information is presented through SSMS so no longer do we have to move to a different window to get information about linked servers, logins, users, server roles and SQL Server Agent.
The client statistics feature in SSMS is much improved from the one in QA. Again let’s look at them side-by-side (SSMS first):
image QA-ClientStats
SSMS’s is much more aesthetic, we can compare multiple executions side-by-side, and we get visual indicators to tell us exactly what is going on with our queries. I’ve talked more about SSMS’s client statistics feature here.

Don’t get me wrong, there are some things in QA that I miss. For example F8 doesn’t toggle the Object Explorer anymore and there’s no dependency information in Object Explorer. SSMS is also a lot slower and has a lot of extraneous panes that you really don’t need (I’ve lost count of the number of times I’ve pressed F4 instead of F5 and have the useless properties pane open on me) – both of these are a hangover from Visual Studio. By and large though these are minor quibbles – SSMS wins for me hands down.

What say you?

-Jamie

Published Thursday, July 10, 2008 1:02 AM by jamie.thomson
Filed under: ,

Comments

 

ranomore said:

Ctrl+O in QA would open a new query window after prompting to select a server. That's called "New Database Engine Query" in SSMS, but it's click only. Actually, most of the keyboard shortcuts that I used were different from QA to SSMS. Those were sad days.

Keyboard shortcuts aside, I'd pick SSMS over QA any day as well.

July 10, 2008 5:25 AM
 

Dew Drop - July 10, 2008 | Alvin Ashcraft's Morning Dew said:

July 10, 2008 1:46 PM
 

Mark Wisecarver said:

F8 will toggle the Object Explorer if you have it set to Auto Hide.

Yes I also fell in love with QA back in the day. ;-)

July 10, 2008 2:39 PM
 

Bill said:

My one challenge with SSMS vs QA is the name.  It's 3 years later and when I'm in someone's cube it's either "Fire up Query Analyzer, errr ummm SQL Server Management Studio" or when I remember it's no longer QA it's "Fire up ... Management Studio"  

July 10, 2008 2:40 PM
 

jamie.thomson said:

Mark,

Very good point taken although the behaviour isn't the same as QA. In SSMS F8 with auto-hide F8 only causes the Object Explorer to appear, pressing it again doesn't cause to go away again - for that you have to go and move the focus some place else. Oh, and that also means that pressing F8 doesn't cause the Object Explorer to stay visible. Thus its not a toggle.

Also, it appears over the top of the query window you're in - that's no good.

Nope, I can see some benfits of SSMS's F8 behaviour (i.e. a quick peek) but give me QA's F8 behaviour any day!!!

-Jamie

July 10, 2008 2:53 PM
 

AndyTorgerson said:

The only thing I miss with QA was the CTRL-B shortcut to move the resultpane!

- Andy

July 10, 2008 3:31 PM
 

Simon Worth said:

In QA, I hated hitting F4 instead of F5 to run the query, the F4 function of opening the object search window was such a pain, because I would almost always hit enter once it opened (by mistake) and object search would return all results.  I also hate the F4 function in SSMS because that properties window is useless!

I really didn't like the transition from QA to SSMS when it first came out, but now I will take SSMS any day over QA.

But I really miss F8, and I don't like SSMS's CTRL + TAB behavior.  I liked QA's better because you could just cycle through all query windows until you found the one you wanted - the behavior of showing me a new window of open queries doesn't work well for me - I'd rather cycle through them all than have a new window open up to show me what's open, that's what CTRL + W was for in QA.

July 10, 2008 3:36 PM
 

mrk said:

Object explorer in SSMS .. Hit F8 to open, when you're done just hit Control+Esc to close the OE window

July 10, 2008 5:51 PM
 

jamie.thomson said:

mrk,

I don't concur I'm afraid. CTRL-Escape brings up the start menu, as it always does in Windows.

-Jamie

July 10, 2008 5:58 PM
 

James.Rowland-Jones said:

Not sure if people know these but in SSMS you can use CTRL-R shortcut to hide the resultpanel and CTRL-N gives you a new query window.  CTRL-R is not quite the same as moving the resultspane but still it does give you back your screen for coding...(CTRL-R again re-displays the results)

I also find enabling the "Show shortcut keys in ScreenTips" to be very handy. Go to :  Tools\customize\Toolbars tab.

Cheers, James

July 10, 2008 6:20 PM
 

Sean Patterson said:

Maybe it is because I have express edition, but one thing I miss in SSMS is the export data wizard. I know I need the full enterprise edition to get the really fancy extracts, but even a simple csv would help a lot.

I've also played around with TOAD for SQL Server a bit. It is free has has some powerful stuff. Have you checked it out?

July 10, 2008 7:05 PM
 

Slawek said:

Hi, all Complainers :)

Stop crying and look around for other tools :) Download and install AutoHotkey for example, and redefine your shortcuts to whatever you want , either in SSMS or in QA :)

Regards,

Slawek

July 12, 2008 10:05 PM
 

mrk said:

Jamie -- oops, its Shift+Esc to close the Object Explorer window (not Control+Esc)

July 28, 2008 4:38 PM
 

Drama King said:

To hide the results pane just hit ctrl + R

August 6, 2008 11:55 PM
New Comments to this post are disabled

This Blog

Syndication

Powered by Community Server (Personal Edition), by Telligent Systems