I'm trying to access the Visual Studio 2008, Server Explorer, in an add-in so that the add-in can allow users to select a database, and perform some operation on the data.
The add-in pretty much works, but requires the user to enter the server name text and database name text manually, in order to build a connection to the database.
I really want to populate a dropdown with the connection names of each connection defined the server explorer, but cannot get at this as easily as I can with solution explorer.
It seems this is very challenging, but one solution I found looks promising,
here.If you scroll down to a post by
Daniel A. Seara, you will see that he accesses the XML info that describes the users server explorer details.
Now this file exists in VS 2008, I looked at it and saw it, but it has encrypted connection strings - not human readable ones.
I'm newish to SQL Server, so if I am given an encrypted connection string, is it easy to connect to the database?
Also, is this all a waste of time, is there simpler way to do this?
Thx
Cap'n