SqlSelect error with DB2 Driver ODBC
Posted: Wed Sep 25, 2024 4:19 pm
Hi
I have a SQL error when I want to initiate a SQLSelect with a SQLConnection on DB2 database
This code perform correctly in VO but not in XSharp with this error:
[IBM][CLI Driver][DB2/AIX64] SQL30090N Opération incorrecte pour l'environnement d'exécution d'application. Code anomalie = "22". SQLSTATE=25000
Could you help me please ?
Thanks
Cyril
I have a SQL error when I want to initiate a SQLSelect with a SQLConnection on DB2 database
This code perform correctly in VO but not in XSharp with this error:
[IBM][CLI Driver][DB2/AIX64] SQL30090N Opération incorrecte pour l'environnement d'exécution d'application. Code anomalie = "22". SQLSTATE=25000
Code: Select all
FUNCTION Start() AS INT
LOCAL oDbDB2I AS sqlConnection
LOCAL oSqlSelect AS SQLSelect
? "DB2 connection testing"
oDbDB2I := sqlConnection{"DNS_NAME", "USER", "PASSWORD"}
IF !IsNil(oDbDB2I:ErrInfo)
? "Erreur Connection"
? oDbDB2I:ErrInfo:ErrorMessage
ENDIF
oSqlSelect := SqlSelect{"SELECT comm_no, demarch_car_no, f_valid_dat_ca FROM MVSDB2DET.VACMANRX", oDbDB2I}
IF oSqlSelect:Execute()
? "requete OK"
ELSE
? oSqlSelect:ErrInfo:ErrorMessage
? "requete KO"
ENDIF
oSqlSelect:Close()
oDbDB2I:Disconnect()
Thanks
Cyril