Mike

Razzak has provided some very sound samples to test for this. Tomorrow I
will post something from the office (in Sweden we have 19:30 almost by now)
if it has not been resolved before.

 

Razzak sample provides for both SCONNECT and SATTACH to check whether  the
db  is connected and table is attached.

 

Maybee you can do a search on this list

 

Gunnar Ekblad

Kontema IT AB

Hästholmsvägen 32

S-131 30 NACKA

SWEDEN

+46 070 545 50 38

[EMAIL PROTECTED]

 

-----Ursprungligt meddelande-----
Från: [email protected] [mailto:[EMAIL PROTECTED] För Ramsour Mike
Skickat: den 24 juni 2008 15:53
Till: RBASE-L Mailing List
Ämne: [RBASE-L] - SQLCODE for ODBC connections

 

Order of the R>

 

Does the SQLCODE get set to some non-0 value if an ODBC connection cannot be
made or is unavailable?

 

Situation:  Some of my programs SCONNECT to DB2 and Oracle databases.  In
some instances the connection is unavailable if only for a short period of
time.  I would like to test for connection availability.  If it's not
available I could then PAUSE for 30 seconds or whatever and then loop back
and try the connection again.

 

If SQLCODE doesn't get set is there some other way to test for the
connection?

 

Thanks and have a phenomenal day! 

Mike Ramsour 

Authorized R:BASE Developer
AK Steel Coshocton Works 
Quality Department 

Phone/VMS:  740-829-4340 

 

Reply via email to