Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Connection State
Message
De
29/10/2005 13:11:24
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01063094
Message ID:
01063273
Vues:
11
Kevin,
I prefer to react if there is a problem. If sqlexec(
DO WHILE .t. 
	TRY 
		lnRetVal = SQLEXEC(this.oconnection.nconnection,tcSQl,tcCursor)
	CATCH
		lnRetVal = -1
	ENDTRY 
	IF lnRetVal < 0
		this.geterrormessage() 
		IF this.oconnection.resetconnection()
			lnLoop = lnLoop + 1 
			IF lnLoop < 2 
				this.cerrormessage = ""
				DIMENSION this.aerrormessage[1] 
			ENDIF 
		ELSE
			EXIT
		ENDIF 
	ENDIF 
	IF lnLoop = 1 
		lnLoop = lnLoop + 1 
	ELSE 
		EXIT 
	ENDIF 
ENDDO 
>How do you check the state of a SQL connection?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform