Recently I've found out, that there's an option to include most commonly used queries to be executed by clicking a button on SSMS toolbar.
You can do that by following these steps:
Now when I came here, things look like that:
However I'm struggling on how to add the actual procedure, that needs to be executed.
There's an option to add multiple SPs:
sp_help
sp_lock
sp_who
How do I assign my procedure to be Custom SP 1
, for instance?
To be clear: My goal is to have a button in SSMS toolbar, which would execute my desired procedure (query) on click.
This is a great question imo, but to do this it's an awful way you'll have to go.
Unfortunately i have the German version of SSMS, so my screens might confuse you a little.
Following you can see a guide:
This seems a bit uncomfortable, but this is the only way i know / can imagine on how to do this.
Let me know if this helps! Cheers