views:

150

answers:

3

Can the SQL Server Management Studio text editor be extended? If it's possible, what kind of work & tools are involved?

I find myself frequently jumping to other editors for certain kinds of text manipulation, and then jumping back to SSMS. If it were possible to extend the SSMS editor, I might do so.

The first feature I would add would be a "column mode" where you could operate on rectangles of text. UltraEdit, Emacs and few other editors have this feature. I find it invaluable for editing SQL.

+3  A: 

Yes. Have a look at SSMS Toolpack for a bunch of very usefull features add-on to SSMS.

Also see SQL Server 2008 Extended Events SSMS Addin on codeplex, you can brose the sources and see how the SSMS add in are codded.

Note that historycaly the SSMS add-in interface was broken by the SP releases a number of times.

Remus Rusanu
Thanks! Do you know of any addins with a column mode like I mentioned?
Peter
No, I don't know any.
Remus Rusanu
+2  A: 

You can do box selections in SSMS by holding down the Alt key.

You can do Alt + select text with the mouse, or Alt + Shift + select text with the cursor keys.

adrianbanks
Peter
You can do box selections in any application that uses the Visual Studio based editor (which is what SSMS uses).
adrianbanks
after a little googling with the right keyword ("box selection"), I see that multi-line editing will be available in VS2010: http://blogs.msdn.com/visualstudio/archive/2009/10/26/box-selection-and-multi-line-editing.aspx.
Peter
+2  A: 

There are lots of ways to hack into SSMS as described above but the reality is that there's no supported way (at present) to extend SSMS. That means that whatever you do could easily break in the next update or service pack.

We've all been harassing the SQL Server team for this for a long time. Please add your voice to the calls for extensibility in SSMS.

Greg Low