re-connect to a database

A

Alberto Vera

Hello:

I can connect to a database using ADO. I use this:
if (self.conn.State != ADO.adStateOpen):
self.__connectDB()

In case I lost the connection, but I have a problem:

When I unplug the wire (network) and I plug it one minute later, I can't send data to my database.

Do you Know How I can re-connect in this case?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top