SHARE
Facebook X Pinterest WhatsApp

Ten Favorite Keyboard Shortcuts in SQL Server Management Studio

Written By
thumbnail
Gregory Larsen
Gregory Larsen
Jun 28, 2021

If SQL Server Management Studio is your primary tool for writing your TSQL, then you need to learn keyboard shortcuts to be more efficient. 

Keyboard shortcuts are a combination of one or more keys that when entered together perform some task, that would normally take a mouse click, or multiple commands to accomplish.   There are many different types of categories of keyboard short cuts, toolbar, menu, window management and cursor movement to name a few.

  1. F5 – Executes TSQL script 
  2. CTRL+N – Opens a new query window using the existing connection
  3. CTRL+K+C – Comments out a set of lines highlighted 
  4. CTRL+K+U – Uncomments a set of lines highlighted 
  5. CTRL+SHIFT+U – Converts highlighted characters to upper case
  6. CTRL+SHIFT+L – Converts highlighted characters to lower case
  7. CTRL+F – Brings up the search window
  8. CTRL-HOME –Repositions the cursor at beginning document
  9. CTRL-END – Reposition the cursor to end of document
  10. CTRL+G – Allows you to jump to a specific line in a script

These is are my 10 favorite, most-used shortcuts.  If you’d like to see all of the keyboard shortcuts, you can find them here.

Recommended for you...

SQL SORT BY Statement
Ronnie Payne
Mar 21, 2023
Working with NULL Values in SQL
Ronnie Payne
Mar 9, 2023
Working with SQL AND, OR, and NOT Operators
Ronnie Payne
Feb 21, 2023
How to Use Databases With Python
technologyadv
Feb 10, 2023
Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.