You are not logged in.
Pages: 1
Hello!
I use mormot framework together with firebird db.
Is ther any way to execute custom sql query using mormot? I need execute stored procedure with params, and i don't know if it is possible.
I tried something like this, but with no luck.
FConnectionDefinition: TSynConnectionDefinition;
...
vDBConnectionParams := TSQLDBZEOSConnectionProperties.CreateFrom(FConnectionDefinition) as TSQLDBZEOSConnectionProperties;
vSQLDBStatementWithParamsAndColumns:= TSQLDBZEOSStatement.Create(vDBConnectionParams.NewConnection);
vSQLDBStatementWithParamsAndColumns.Connection.Connect;
vSQLDBStatementWithParamsAndColumns.Connection.StartTransaction;
vSQLDBStatementWithParamsAndColumns.Prepare('select OUTPUT_INT from TEST_MORMOT_PROC(1)');
vSQLDBStatementWithParamsAndColumns.ExecutePrepared;
vSQLDBStatementWithParamsAndColumns.Connection.Commit;
Many thx in advance!
Offline
Pages: 1