Get list of active connections from SSMS addin

127 Views Asked by At

I'm trying to get list of all active connections infos from SSMS addin.

I know that I can get connection like this:

UIConnectionInfo uiConnectionInfo = ServiceCache.ScriptFactory.CurrentlyActiveWndConnectionInfo.UIConnectionInfo;

The problem is that it only gives me connection info for currently active document. I have multiple connections in solution explorer and need to get them all.

Does anybody know a way to get list of all active connections infos?

Alternatively, is there is a way to access list of connection infos from registered servers, that would help too.

Thanks!

0

There are 0 best solutions below