I am looking at using the pooling in MySQL Connector/Net in VB.net and they said that:
Do not create a globally accessible instance of MySqlConnection and then >manually open and close it. This interferes with the way the pooling works >and can lead to unpredictable results or even exceptions.
One approach that simplifies things is to avoid manually creating a >MySqlConnection object. Instead use the overloaded methods that take a >connection string as an argument. Using this approach, Connector/NET will >automatically create, open, close and destroy connections, using the >connection pooling system for best performance.
I don't seem to understand how it should be implemented in VB.net I've looked through the J sample but was unable to implement in VB.net and can't find any code sample for implementing connection pooling for VB.net.
Could anybody help me with that please?