Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server Management Studio execute shortcut & keyboard shortcuts

  1. Is there any easy way to execute a chunk of code instead of moving cursor to the beginning of code chunk, and Shift + to the end of code, then hit F5?

  2. Is there any keyboard shortcut to duplicate line (duplicate several lines), delete line (delete several lines)?

like image 617
Stan Avatar asked Apr 30 '10 21:04

Stan


People also ask

What is the shortcut key to execute at SQL query?

F5 or Ctrl + E -- Execute a query. F1 -- Help for Query Analyzer. SHIFT+F1 -- Help for the selected Transact-SQL statement.

Where is execute button in SSMS?

At the top of the screen is a toolbar containing lots of buttons. One of those buttons is labeled New Query, and when you click on it you open a window in which you can type and execute SQL. You'll be using this button and window extensively.

What does CTRL L do in SSMS?

Typing CTRL+L executes either the selected text in the Query Editor window (or all the statements in the window if nothing is selected) and displays the execution plan.


1 Answers

  1. No, but CTRL+E is also "Execute" which is what I use which might be easier

  2. No, but you may be able to find something in all SSMS KB shortcuts on MSDN. Example: shift+down arrows, ctrl+C, ctrl+V x 2

like image 155
gbn Avatar answered Oct 01 '22 18:10

gbn