SQL Server: All Important Query Window Shortcut Keys

F1: Help

F2: Move to next bookmark

F3: Repeat last search

F4: Object Search

F5: Execute a sql query

F6: Switch between query and result

F8: Show or Hide Object Browser

TAB: Increase indent of query text

SHIFT+TAB: Decrease indent of query text

ALT+BREAK: Cancel a running query

ALT+F1: Information of Database Object Definition

ALT+F4: Exit

CTRL+A: Select all

CTRL+B: Move the splitter

CTRL+C: Copy

CTRL+D: Display query results in grid format

CTRL+E: Execute a query

CTRL+F: Find

CTRL+I: Open Index Tuning Wizard

CTRL+K: Display or Hide execution plan

CTRL+L: Display execution plan

CTRL+N: Open New query window

CTRL+O: Connect

CTRL+P: Print

CTRL+R: Show or Hide results pane

CTRL+S: Save

CTRL+T: Display query results in text format

CTRL+U: Change database

CTRL+V: Paste

CTRL+W: Window selector

CTRL+X: Delete

CTRL+H: Replace

CTRL+Z: Undo

SHIFT+F1: Open help for Transact-SQL

SHIFT+F2: Move to previous bookmark

SHIFT+F6: Switch between panes

CTRL+F2: Insert/remove bookmark

CTRL+F4: Disconnect

CTRL+F5: Parse query

CTRL+G: Go to line

CTRL+SHIFT+0: Show options

CTRL+SHIFT+C: Comment out code

CTRL+SHIFT+DEL: Clear Editor pane

CTRL+SHIFT+F: Save results to file

CTRL+SHIFT+F2: Clear all bookmarks

CTRL+SHIFT+INSERT: Insert a new template

CTRL+SHIFT+L: Lowercase Selection

CTRL+SHIFT+M: Replace template parameters


CTRL+SHIFT+R: Comment Remove

CTRL+SHIFT+S: Client Statistics

CTRL+Delete: Delete through the end of the line

CTRL+SHIFT+T: Open Server trace

CTRL+SHIFT+U: Uppercase Selection

Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.

I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.

More from dbrnd.com

Leave a Reply

2 Comments on "SQL Server: All Important Query Window Shortcut Keys"

Notify of
Sort by:   newest | oldest | most voted

Fantastic blog. Really Great.

over here

I just want to tell you that I am just all new to weblog and seriously enjoyed you’re blog site. Most likely I’m planning to bookmark your blog post . You definitely come with perfect stories. Thank you for revealing your blog site.