lost connection

A

Alberto Vera

Hello:
I use these lines to connect to a database:

conn = win32com.client.Dispatch('ADODB.Connection')
conn.Open('Provider...)

But I have a problem: If I unplug the wire(network) then I can't make anything to a database.

I thought the conn.State has changed but allways has the same value of 1.

Do you think is it a bug on Python?

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

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,462
Latest member
ChanaLipsc

Latest Threads

Top