Apologies if this has been asked before, but the case is not so usual.
I work with a lot with a single .sql
file with many helper queries in it, example:
select * from elmah_error order by timeutc desc;
select * from orders order by timeutc desc;
I want to prevent whole file execution with F5 so that only "selection" is executed upon pressing F5.
I looked around SQL Server Management Studio for any setting that could prevent "full file execution" and couldn't find any.
Is there and EXIT/BREAK/GOTOTOP
T-SQL command I could use at the top of each file?
stop;
select * from elmah_error order by timeutc desc;
select * from orders order by timeutc desc;
Many thanks.