Whilst looking for something else today I came across this little nugget. Something that should  be handy for anyone connecting to SQL servers wanting to build a connection string at runtime.

Here is a link to the blog:

Data Connection Dialog Source Code is released on Code Gallery!

And a link to the source code just in case:

http://code.msdn.microsoft.com/Connection/

 

Enjoy,
Brahn