Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSMS: keyboard shortcut to execute current row? [duplicate]

SQL Server Management Studio: Is there a way to execute current row (keyboard shortcut) without highlighting it?

like image 821
tesmp Avatar asked Apr 04 '11 09:04

tesmp


2 Answers

Highlighting the text beforehand, i.e. by clicking the combination Home, Shift + End, F5 would appear to be the only option.

See answers here: How can I run just the statement my cursor is on in SQL Server Management Studio?

like image 154
DaveRead Avatar answered Nov 27 '22 12:11

DaveRead


The add-in SQL Complete has this exact feature. Execute current statement using a hotkey without selecting it. Their free express version has it, but I also recommend standard version for its additional features. It's a major time-saver.

like image 24
Gabe Avatar answered Nov 27 '22 10:11

Gabe