ExtensibilityTools icon indicating copy to clipboard operation
ExtensibilityTools copied to clipboard

How to add my own command to the SSMS context menu?

Open win32nipuh opened this issue 6 years ago • 2 comments

I'd like to add my own command to the SSMS 2018 context menu, but it is one command for right-click on Server node, another for database node. How to do it?

win32nipuh avatar Jul 01 '19 07:07 win32nipuh

You can use the Command Explorer to find the GUID/ID pair needed for the location of the commands you'll add

madskristensen avatar Jul 01 '19 14:07 madskristensen

Thank you, great extension! There are all available menus for VS, but may be you can me pick: what are the context menus for Server node and for the Database node? Sorry but I really cannot find them :-) I.e. when user clicks Server and Database nodes.

In my AddIn for SSMS 2012 I redefined methods: OnConnection, OnDisconnection etc like this public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom) and did menu manipulation there. To test I have added the same methods to the SSMS-Schema-Folders but they not called anymore in VS2017 Shell extension.

win32nipuh avatar Jul 02 '19 08:07 win32nipuh