I open the connection as follows:
Using conn as New OdbcConnection(connectionString)
conn.Open()
//do stuff
End Using
If the connection pool is enabled, the connection is not physically closed, but freed into the pool and will be reused. If it is disabled, it will be physically closed.
Is there a way to find out programmatically if the connection pool is enabled or not? and the number of used and unused connections open in the pool?
EDIT: I need to get this information from the program, I can’t go and check it manually on each PC where the program will be deployed.
source
share