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. Advertisements

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. Kate Perry

    connect to db2 database using dbi?

    Kate Perry, Jul 10, 2003, in forum: Perl
    Replies:
    0
    Views:
    3,505
    Kate Perry
    Jul 10, 2003
  2. SSP
    Replies:
    1
    Views:
    3,263
    Jeff Cochran
    Jul 1, 2003
  3. Daniel Bass

    ASP.NET database won't connect...

    Daniel Bass, Aug 6, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    587
    Benny Tordrup
    Aug 7, 2003
  4. vijay
    Replies:
    2
    Views:
    3,544
    vijaya kumar.P
    Aug 29, 2003
  5. Otis Mukinfus
    Replies:
    3
    Views:
    1,192
    Juan T. Llibre
    Jul 8, 2005
  6. Replies:
    3
    Views:
    42,088
    Roedy Green
    Nov 16, 2005
  7. Replies:
    2
    Views:
    563
  8. Mohsen Pahlevanzadeh

    Qt connect and first connect or unicode

    Mohsen Pahlevanzadeh, Sep 17, 2013, in forum: Python
    Replies:
    3
    Views:
    413
    Mohsen Pahlevanzadeh
    Sep 18, 2013
Loading...