r/SQLServer • u/darrenkopp • Mar 14 '14
The most amazing keyboard command for Sql Server Management Studio
http://darrenkopp.com/posts/2014/03/13/The-most-amazing-keyboard-command-for-Sql-Server-Management-Studio12
u/Tofinochris Mar 14 '14
I blow minds when I show people something as simple as ctrl-e to execute a query. This would kill people outright. Thanks!
6
9
u/killit Mar 14 '14
Out of interest, why use CTRL E when you can just use F5 and cut down a button press?
5
u/Wookovski Mar 14 '14
Save moving your hand out of the natural typing position, perhaps... F5 is a bit of a stretch
5
2
u/killit Mar 14 '14
Fair enough I know what you mean, can't see me changing from F5 though to be honest, I like the one button press :)
1
u/Wookovski Mar 14 '14
In Access I do Alt, Q, R to run a query. Seems tedious but when used to it it's quicker than clicking on the "!"
4
u/MidnightDBA Mar 14 '14
I got out of the habit of F5 when I used a laptop for presentations. The function keys were overloaded, so when I hit F5 it didn't run the query: it put the laptop to sleep.
Do that in presentations once or twice, and you're cured for life. (My new laptop is similar; F5 turns off the display.)
And I agree with /u/Wookovski, home row FTW.
1
u/killit Mar 14 '14
Yeah I can see how you could begin to resent a shortcut if that's what happens. I'm not in the habit of doing presentations, but I can guarantee this is the kind of thing that would happen to me, if something bad could happen, it will happen, and it will happen at the worst possible time sigh
1
u/flipstables Mar 16 '14 edited Mar 16 '14
WTH? I've never heard of that behavior/design! Usually, you would use the overloaded functions by pressing the
Fn+ F5, not just simply hitting F5.Edit: not that I don't believe you, just that it's a bad design!
1
u/Tofinochris Mar 14 '14
I find it far easier to hit a chord of keys that my fingers are already near than to hit F5. Ctrl-E I can hit without looking. The F-keys I invariably have to look to see.
2
u/killit Mar 14 '14
Ah I work differently, my hand just automatically moves to F5 without looking, using CTRL-E I end up hitting CTRL-R by accident if I've been looking at the screen and my hands have moved a little, which just drops the output window.
5
1
Mar 14 '14
Doesn't work if your object is in a different schema than dbo.
Tried highlighting just the object and it failed, tried highlighting the schema.object and it failed also.
1
u/darrenkopp Mar 14 '14
works for me, even with complex namespace
[servicemanagement.workorders].workorder. perhaps there is something else wrong?
3
3
u/emcoffey3 Mar 14 '14
This is probably my most-used SSMS shortcut besides F5. It is the same as if you executed:
exec sp_help @objname="<selected_text>"2
2
1
4
u/ComicOzzy Mar 14 '14