问题
Is it possible to create a new menu item in SQL Server 2008 Management Studio?
For example when you right-click the a database a list of options appears (New Database, New Query ... ).
Is it possible to add a new item in that list and implement some C# functionality when clicking that button?
回答1:
From MSDN.
Adding a New Item to the Menu To add a new item to the menu
- On the Tools menu, click Options.
- In the Customize dialog box, on the Commands tab, click New Menu.
- On the Commands box, drag New Menu to the menu bar and drop it where you want the new menu to appear.
- On the menu, right-click New Menu, and in the Name box, type a name for the new menu.
- In the Customize dialog box, select category such as File, and select a command such as Open File. Drag the command to the new menu. As you point to the new menu, the menu will expand. Drop the command onto the expanded menu.
- In the Customize dialog box, click Close.
来源:https://stackoverflow.com/questions/10460305/create-a-new-menu-item-in-sql-server-management-studio