I would like to write in SQLite with AcuCobol 9.2.5 and use sqlite3.dll. Is it possible and when yes, where can I find an example?
Thank you in advance.
Werner
I would like to write in SQLite with AcuCobol 9.2.5 and use sqlite3.dll. Is it possible and when yes, where can I find an example?
Thank you in advance.
Werner
I would like to write in SQLite with AcuCobol 9.2.5 and use sqlite3.dll. Is it possible and when yes, where can I find an example?
Thank you in advance.
Werner
For mssql you can use this code, for sqllite may be the same, only the connectstring must be other:
see zip-file
I would like to write in SQLite with AcuCobol 9.2.5 and use sqlite3.dll. Is it possible and when yes, where can I find an example?
Thank you in advance.
Werner
I would like to write in SQLite with AcuCobol 9.2.5 and use sqlite3.dll. Is it possible and when yes, where can I find an example?
Thank you in advance.
Werner
Vielen Dank für die Antwort und die Datei. Ich werde diese morgen testen.
In einem Beitrag habe ich diesen Ansatz über die sqlite3.dll gefunden und eingebaut:
call "sqlite3_exec" using by value sqlite3-db
by reference sqlQuery
by value 0
by value 0
by reference err-msg
returning RC
end-call.
Das Schreiben in die SQlite-DB-Tabelle und das Löschen der Daten funktioniert so. Nur Retour-Werte kann ich nicht auswerten. Offenbar funktioniert dieser Aufruf nur in eine Richtung.
Vielen Dank für die Antwort und die Datei. Ich werde diese morgen testen.
In einem Beitrag habe ich diesen Ansatz über die sqlite3.dll gefunden und eingebaut:
call "sqlite3_exec" using by value sqlite3-db
by reference sqlQuery
by value 0
by value 0
by reference err-msg
returning RC
end-call.
Das Schreiben in die SQlite-DB-Tabelle und das Löschen der Daten funktioniert so. Nur Retour-Werte kann ich nicht auswerten. Offenbar funktioniert dieser Aufruf nur in eine Richtung.
Hi Werner,
you must become the result code (RC) in the field RC, rc=0 will be succesfull, otherwise error.
you must call to begin of your Programm: call "sqlite3.dll"
Can you share your Little program, i have many time and will help you to include all SQL possibilities as for other database as mssql, mysql, Oracle, db2 and other.
Thank you for giving us the possibility to help you and the community
Hi Werner,
you must become the result code (RC) in the field RC, rc=0 will be succesfull, otherwise error.
you must call to begin of your Programm: call "sqlite3.dll"
Can you share your Little program, i have many time and will help you to include all SQL possibilities as for other database as mssql, mysql, Oracle, db2 and other.
Thank you for giving us the possibility to help you and the community
writing works well, also delete, open and close. Just reading ist not possible.
I don't get a return and RC is not zero. I think the data types are wrong with USING BY. I also do not recognize in which field / table the return values would be output.
Hi Werner,
you must become the result code (RC) in the field RC, rc=0 will be succesfull, otherwise error.
you must call to begin of your Programm: call "sqlite3.dll"
Can you share your Little program, i have many time and will help you to include all SQL possibilities as for other database as mssql, mysql, Oracle, db2 and other.
Thank you for giving us the possibility to help you and the community
here a example to read a database with mssql (see attachment)
Vielen Dank für die Antwort und die Datei. Ich werde diese morgen testen.
In einem Beitrag habe ich diesen Ansatz über die sqlite3.dll gefunden und eingebaut:
call "sqlite3_exec" using by value sqlite3-db
by reference sqlQuery
by value 0
by value 0
by reference err-msg
returning RC
end-call.
Das Schreiben in die SQlite-DB-Tabelle und das Löschen der Daten funktioniert so. Nur Retour-Werte kann ich nicht auswerten. Offenbar funktioniert dieser Aufruf nur in eine Richtung.
here a example to read a database with mssql (see attachment)
Thank you very much. How can I use this code in AcuCobol 9.2?
EXEC SQL doesn't workDu you have a complete sample I can test in AcuBench, please?
I would like to write in SQLite with AcuCobol 9.2.5 and use sqlite3.dll. Is it possible and when yes, where can I find an example?
Thank you in advance.
Werner
Werner, it exist a odbc Driver for sqlite and then you can use normal SQL commands,
see https://www.devart.com/odbc/sqlite/download.html
writing works well, also delete, open and close. Just reading ist not possible.
I don't get a return and RC is not zero. I think the data types are wrong with USING BY. I also do not recognize in which field / table the return values would be output.
writing works well, also delete, open and close. Just reading ist not possible.
I don't get a return and RC is not zero. I think the data types are wrong with USING BY. I also do not recognize in which field / table the return values would be output.
Thank you once more. I'll test the ODBC-Version with AcuCobol 10.3 in some days. Up to now I'm using the DLL-Access.
Thank you once more. I'll test the ODBC-Version with AcuCobol 10.3 in some days. Up to now I'm using the DLL-Access.
Thank you very much. How can I use this code in AcuCobol 9.2?
EXEC SQL doesn't workDu you have a complete sample I can test in AcuBench, please?
If you are using EXEC SQL within your Acu COBOL program, in addition to the regular compiler and runtime, you need to have the AcuSQL PreCompiler and AcuSQL runtime installed
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.