how to close the connection used in a strong typed dataset/tableadapter

adshocker

Well-known member
Joined
Jun 30, 2007
Messages
180
Programming Experience
Beginner
hi all,

is there a way to do this?

thanks
 
Absolutelly! The dataadapter object takes care about it automatically. Means, you don't need to do anything additonal to open or close the connection. Just associate the correct connection with the DA and voila you can get relax lol

Otherwise as Arg81 stated already you need to use the Open and Close methods of the connection object.

Connection.Open()
' DO Something
Connection.Close()

HTH :)
 
i see... but i need to do a clearpool on my connection. how do i do that with a strong typed datasets? i need to somehow reference the connection so that i can add the code myConn.ClearPool().
 
YourTypedTableAdapter.Connection
 
Back
Top