Zuomin,
About the "secret shortcuts":
In SQL Server Management Studio, the shortcuts Ctrl+1, Ctrl+2, etc. can be configured in Tools|Options|Environment|Keyboard.
These shortcuts do not apply in a modal dialog like Query Designer. As far as I can see, the different behavior of CTRL+1, etc. (view/hide a particular pane) in the designer are not documented.
Steve Kass
Drew University
http://www.stevekass.com
Dave,
First of all, if you have suggestions for the SQL Server developers at Microsoft, I can assure you they want to hear them, but please post them at the SQL Server product feedback site. Here's the link:
http://go.microsoft.com/fwlink/ linkid=34178
While I'm no fan of the query designer (you can see my suggestions and bug reports on the product feedback site), I can reply to some of your observations:
3) I would call this a bug, but not exactly an inconsistency bug. Open Table is simply the wrong place to write a query. (The query designer is wrong, too, I think, but Open Table is really wrong!) Either there should be a "New Query" item in the context menu, or the documentation should tell you to open a blank query editor window and choose Design Query in Editor from there.
4-5) You do raise a good issue that there seems to be more than one query designer tool. Instead of putting effort into making these separate tools consistent, they should remove all query designer features from Open Table (and fix the documentation) so no one mistakes or misuses that tool as a query designer.
6) It's not so obvious. First of all, if * is checked, what do you want to see in the criteria pane (Think of programming the designer - keeping the checkboxes in 1-1 relationship with the rows of the criteria pane is much easier than having a special case for the * checkbox.) And it's good practice not to use *, but list all column names explicitly instead, at least in production code.
7) Yes, this is confusing, but a query editor window can contain all kinds of things beyond just a single query. Again, this is a consistency issue for the programmers - it's work with little benefit to parse what's in the editor just to see if it is a single query or not, so that if it's a single query, it opens in the designer.
If you do post your suggestions to the product feedback site, perhaps you could post links to your suggestions here. That way more people might learn about the product feedback site, and people reading this thread might visit your suggestions and vote on them. Votes make a difference to Microsoft when they prioritize non-critical issues.
Steve Kass
Drew University
http://www.stevekass.com
zuomin wrote:
BTW: I'm curious about how could you find out so many secret shortcuts like ctrl+1, ctrl+2 ...
Can it be found at the corner of some dialog or menu
Thanks Steve for that - good to know about the SQL Server product feedback site - I'll definitely post them, but gonna use this as a sort of a blog to first get my thoughts in order (so what I say is consistent ![]()
As to item 6, one can already check the * box in the graphical query designers, and they do a good job blocking a filter condition for the * row in the criterior pane as expected - and as SQL 2000 Enterprise Manager did so well - it just makes sense (to me at least) to have me tell the designer what I'm trying to do, not the other way round. When I'm ready to list all fields, then ... it will cooperate (evil grin)
If you have access to any of the old printed MS Excel manuals - about '96 or '98 I think, there is a very clear explanation n the forward of Microsoft's "for dummies" philosophy with that product - that the program tries to figure what you're trying to do, so you don't have to understand how computers and technology work - you can just get the job done as quickly as possible. It seems however to be an all encompassing MS philosophy since early days till now - taking away the programmers' power - GRRRRRRRRRRR
Mmmmmmm - will have to think about what you say for production code to list all fields - yes I suppose it makes it clear what the query is doing. (also makes it more difficult to edit the query, as well as dependent views etc.)
As to Item 7 - aha yes of course you're right - thanks ![]()
As to Item 3 :
|
|
Open Table |
Query Designer |
New Query |
|
Remarks |
A Graphical Query Designer |
Another Graphical Query Designer |
Non-graphical editor with full T-SQL capabilities ¨C ie: not just a query designer |
|
ctrl-1, 2, 3, 4 do what |
Show or hide the Diagram, Criterior, SQL and Results Pane |
Same, but no Results pane, so ctrl-4 does nothing |
As per settings in Options > Environment > Keyboard |
|
F5 works |
No |
No |
Yes |
|
Modal |
No |
Yes |
No |
|
Can see results |
Yes |
No |
Yes |
|
Table Properties in context menu |
No |
Yes |
N/A |