re-connect to a database

Discussion in 'Python' started by Alberto Vera, Oct 29, 2003.

  1. Alberto Vera

    Alberto Vera Guest

    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
     
    Alberto Vera, Oct 29, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Otis Mukinfus
    Replies:
    3
    Views:
    961
    Juan T. Llibre
    Jul 8, 2005
  2. Replies:
    3
    Views:
    40,681
    Roedy Green
    Nov 16, 2005
  3. Replies:
    2
    Views:
    331
  4. Mohsen Pahlevanzadeh

    Qt connect and first connect or unicode

    Mohsen Pahlevanzadeh, Sep 17, 2013, in forum: Python
    Replies:
    3
    Views:
    178
    Mohsen Pahlevanzadeh
    Sep 18, 2013
  5. Mohsen Pahlevanzadeh

    Re: Qt connect and first connect or unicode

    Mohsen Pahlevanzadeh, Sep 17, 2013, in forum: Python
    Replies:
    0
    Views:
    140
    Mohsen Pahlevanzadeh
    Sep 17, 2013
Loading...

Share This Page