Ten Favorite Keyboard Shortcuts in SQL Server Management Studio | Database Journal

Ten Favorite Keyboard Shortcuts in SQL Server Management Studio

Written By
Gregory Larsen
Gregory Larsen
Jun 28, 2021
1 minute read

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.

Gregory Larsen

Gregory A. Larsen is a DBA at Washington State Department of Health (DOH). Greg is responsible for maintaining SQL Server and other database management software. Greg works with customers and developers to design and implement database changes, and solve database/application related problems. Greg builds homegrown solutions to simplify and streamline common database management tasks, such as capacity management.

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. © 2026 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.