Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS ODBC driver for Oracle connectivity error
Message
From
17/07/2002 04:26:52
Omar Jonsson
Baendasamtok Islands
Iceland
 
 
To
16/07/2002 15:35:06
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00679111
Message ID:
00679514
Views:
22
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform