Intercept F5 and warn if nothing selected
When I hit F5 in an SSMS window where I'm trying to DELETE without a WHERE clause, SQL Prompt intercepts this and gives an Execution Warning. That's great. Is there a way to do a similar warning if hitting F5 with nothing selected, which executes everything in the script file?
In my opinion, that is VERY dangerous because I jump back and forth between SSMS and Visual Studio, where F5 just runs a program. I rarely would want the F5 to execute everything.
Of course, it would need to be an option that could be turned off via “Don't show this warning again” as with the existing option.
1
vote