[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

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!
0
wayneburr
Asked:
wayneburr
1 Solution
 
SanclerCommented:
Try

        MsgBox(ThisTableAdapter.Connection.ConnectionString)

Roger
0
 
wayneburrAuthor Commented:
Nice and easy.  Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now