Welcome! Log In Create A New Profile

Advanced

Erreur de connexion

Posted by JohnB 
JohnB
Erreur de connexion
October 02, 2020 12:42PM
Bonjour

j'ai ce message lorsque j’exécute ma requête malgré l'utilisation de HFermeConnexion(MaConnexion) après exécution des requêtes

message d'erreur :

La connexion est occupée avec les résultats d'un autre hstmt

Cordialement
merci pour votre aide
Argus
Re: Erreur de connexion
October 02, 2020 02:24PM
1. ce forum est en langue ANGLAISE (au minimum, google translate). This forum is in English (at a minimum, Google Translate)

2. sans voir ton code on ne peut pas vraiment t'aider - Without seeing your code, we can't really help

3. hfermeconnexion se fait, éventuellement, à la fin du programme, PAS après exécution de chaque requete - hcloseconnexion should be used eventually at the end of the program, NOT after each query.
JohnstonB
Re: Erreur de connexion
October 02, 2020 03:46PM
bonjour
voici mon code


////ouverture de la connexion a la base de donnée
Procédure_Connexion_Serveur()

//Fusion des états

POUR TOUTE LIGNE DE TABLE_DetailPieceCais

xValeurCdeID est un numérique=TABLE_DetailPieceCais.COL_CodeDEMID

// HExécuteRequête(REQ_FusionEtat,hRequêteDéfaut,xValeurCdeID)
//
// HLitPremier(REQ_FusionEtat)

Conteur est un entier = 1
Fichierimp est un entier = 1
testpage est un entier



// TANTQUE PAS HEnDehors ()



HExécuteRequête(REQ_FusionEtat,hRequêteSansCorrection,xValeurCdeID)
// HExécuteRequête(REQ_tottransjour)


iDestination(iPDF,"E:\4-Donnée web22\4.1-SOURCES\4.1.4-SITES\PayeOccas2\PAYEOCCAS2_WEB\Fiche PayeOccas PDF\"+Fichierimp+".pdf")
iNumPage(Conteur)

iImprimeEtat(ETAT_FusionEtat)

Conteur=testpage+1

Fichierimp = Fichierimp+1

// HLitSuivant (REQ_clientchant)
// FIN


monTableaudepdf est un tableau de Fichierimp chaînes


POUR i = 1 À Fichierimp

monTableaudepdf = "E:\4-Donnée web22\4.1-SOURCES\4.1.4-SITES\PayeOccas2\PAYEOCCAS2_WEB\Fiche PayeOccas PDF\"+i+".pdf"


FIN


PDFFusionne("E:\4-Donnée web22\4.1-SOURCES\4.1.4-SITES\PayeOccas2\PAYEOCCAS2_WEB\Fiche PayeOccas PDF\pdf_fusion.pdf",monTableaudepdf)


FIN
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: