views:

522

answers:

3

Hi All,

Does anyone have any experience of developing external tools for SSMS 2005.

Ideally I would like to be able to interact with the query windows directly, for example, taking the query text from the window to perform some processing on it.

Any pointers in the right direction would be great.

Thanks in advance

A: 

Have you looked at Sql Server Management Objects (SMO)?

http://msdn.microsoft.com/en-us/library/ms162557.aspx

MarkB
A: 

The best example of this I have seen for SSMS is SQL Prompt by Red Gate

SQL Prompt runs a seperate .NET app that sits in your systray and is in some way part of the magic of the integration.

For loading an add-in, you will want to create a key under:

HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\Shell\AddIns\

...in order to have SSMS load your add-in.

Hope this helps

James Green
A: 

Very late entry...

Example of how to do it here

And here too

gbn
A late entry but a good one. I ended up using both those examples along the way.
jheppinstall