Extracting a connection string from a connected Adapter

VS2005
VB2005.NET
Winforms

What is the best method to extract or to get what the connection string is on a tables adapter? ver2005
I have a form I dragged a datasource from the datasource tab.  This in turn created the adapter.  I would like to within code return what the connection string is on that adapter.

Thanks!
wayneburrAsked:
Who is Participating?
 
SanclerCommented:
Try

        MsgBox(ThisTableAdapter.Connection.ConnectionString)

Roger
0
 
wayneburrAuthor Commented:
Nice and easy.  Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.