Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS ODBC driver for Oracle connectivity error
Message
De
17/07/2002 04:26:52
Omar Jonsson
Baendasamtok Islands
Iceland
 
 
À
16/07/2002 15:35:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00679111
Message ID:
00679514
Vues:
21
Than you Gordon I will try this.
>Our application that we develop contain code to help with this situation.
>
>Basically you already have a connection to the database open. I don't think you are creating a new connection for every query into whatever database. You don't need to either, except when you have problems like this. For example:
>
>* Connection is already open and has been used x number of times before.
>lnResult = SQLEXEC()
>IF lnResult > 0
> * you already handle this stuff
>ELSE
> * connection may be busy, bad, whatever...
> * you didn't get what you should have
>
> * create a new connection - no one said you couldn't
> lnHandle = SQLCONNECT()
>
> * re-execute the query or command
> = SQLEXEC()
>
> * don't forget to clean up after yourself
> * this is only a temporary connection
> = SQLDISCONNECT()
>ENDIF
>
>Generally you only need to try twice, so a loop will be unnecessary.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform