In TOAD, you have keyboard shortcuts where you can select the current block or execute the current block....so if you are working on a large sql query, when you make a modification, you can just do a CTRL+ENTER (or something like that, can't recall right now) rather than having to manually highlight the block of sql and htting F5.
I'm pretty sure this doesn't exist natively in SSMS, anyone know if functionality like this exists in any Add-ins?
Sorry....some clarification....I'm talking about working in the query window, which may contain:
select * from SomeTable
select * from SomeTable
WHERE
column1 = 'abc'
AND column2 = 'def' <--- LET'S SAY MY CURSOR IS SITTING HERE
AND column3 = 'ghi'
select * from AnotherTable
WHERE
column1 = 'abc'
AND column2 = 'def'
AND column3 = 'ghi'
So, I just want to execute the statement that my cursor is within.
The add-in SQL Complete has this exact feature. Execute current statement 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.