The following are the Microsoft SQL Server keyboard shortcuts.
- To Run Microsoft SQL Server:
- Press Windows+R
- Type ssms
- Press the OK button

- Control+G: to go to the desired line number and display line number in the query editor window.
Go to Tools -> Options.
It will display numbers as in the following image.
For example:
- Control+E: Executes the query.
Select the query you want to execute and then press Control+E.
- Control+L: Cost Estimation.
Select the query you want to execute and then press Control+L.
For example:
- Control+R: Hide/show the Result Pane.
- Control+N: New Query Window.
- Control+Shift+U: Convert text to UPPERCASE.
Select the text you want to convert and then press Control+Shift+U.
- Control+Shift+L: Convert text to lowercase.
Select the text you want to convert and then press Control+Shift+L.
- Control+Shift+Del: Clears the active query window.
It clears the contents of the active window.
- Control+U: Use databse.
Press Control+U, then your mouse focus will go to the database dropdown as in the following.
For example:
And then you can use the up and down arrow keys or type the text to choose the database.
- Control+T: displayss the result in text format.
Press Control+T and then execute the query. It will show the result as follows.
For example:
- Control + D: To display the result in Grid format.
And to display the result in grid (default format) press Control+D and then execute the query.
- Control+ Left/Right Arrow: To move the cursor to the next word.
- Control+Shift+ Left/Right Arrow: To move and select the next word.
- Alt+Shift+ Left/Right/Down Arrow: To select the text that is usually not possible using the mouse as in the following.
For example:
- Alt+F1
To view the table definition.
Select the table name and then press Alt+F1.
For example:

Bruno PétersonPosted May 13, 2015, 9:34 AM
Very good, thank you!
Santhakumar MunuswamyPosted Apr 11, 2015, 9:25 PM
thanks for sharing
Santhakumar MunuswamyPosted Apr 11, 2015, 9:25 PM
good work
Bruno PétersonPosted Apr 11, 2015, 9:17 PM
Very good!
Ashish NakilPosted Feb 23, 2015, 1:26 PM
Thanks for all comments. really inspiring me to learn more and to share more . Thanks :)
Dinesh BeniwalPosted Feb 23, 2015, 10:44 AM
Thanks for sharing Ashish Nakil
Rahul Kumar SaxenaPosted Feb 23, 2015, 9:33 AM
Very Usefull ... :)
Sibeesh VenuPosted Feb 23, 2015, 8:57 AM
Ashish Nakil You are welcome.
Sibeesh VenuPosted Feb 23, 2015, 7:26 AM
Good One.
Parag KulthePosted Feb 23, 2015, 1:06 AM
Thanks :-)
Prasham SabadraPosted Feb 23, 2015, 12:59 AM
Nice article! Thanks for sharing!
Joginder BangerPosted Feb 23, 2015, 12:18 AM
ALT+F5 for debug the query or store procedure. Good information sir...
Parag KulthePosted Feb 22, 2015, 11:47 PM
I think point 15 & 16 are shuffle
Parag KulthePosted Feb 22, 2015, 11:46 PM
Again very useful & nice article Ashish. Keep it on