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:
- Right mouse click on toolbar
- Click Customize
- Create new toolbar
- Modify it
- Add Command
- Under Query categories there's option to add up to 9 Custom SPs
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:
- Custom SP 1
- Custom SP 2
- ...
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.