====== Programmierung mit ESQL/C und CLI ====== Code-Schnipsel, Tipps und Tricks. [[edv:prg:esql_c:example:int execSimpleSQL|execSimpleSQL()]] Ausführen von einfachen (dynamischen) SQL-Statemens (kein Prepared Statement) ohne eigenen Transaktionskontext [[edv:prg:esql_c:example:db_exec_sql]] Modul (Beispiel) mit einigen (Informix-)DB-Funktionen [[edv:prg:esql_c:example:ErrorHandle]] (Beispiel) ===== Informix ===== [[edv:prg:esql_c:example:Felder der sqlca-Struktur]] (Auszug aus "IBM Informix ESQL/C Programmer's Manual") [[edv:prg:esql_c:example:Behandlung von BLOBs]] ===== DB2 ===== FIXME Unterschied beim Zugriff auf die DB2 zwischen DB2-CLI (über den DB2-Client) und ODBC anschaulich dargestellt: [[https://www.ibm.com/support/knowledgecenter/en/SSSNY3_10.1.0/com.ibm.db2.luw.apdv.cli.doc/doc/c0000670.html|Comparison of CLI and ODBC]] Einige Links im Zusammenhang mit der Entwicklung von Multi-Threaded Anwendungen mit DB2-Client (die Liste ist nicht vollständig): [[http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=%2Fcom.ibm.db2.udb.doc%2Fdoc%2Fc0006170.htm|Verbindungspooling]] Bereich **Datenbankanwendungsentwicklung:**\\ [[http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2Fcom.ibm.db2.luw.apdv.cli.doc%2Fdoc%2Ft0007069.html|Allocating statement handles in CLI applications]]\\ [[http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/index.jsp?topic=%2Fcom.ibm.db2.luw.apdv.cli.doc%2Fdoc%2Fr0000555.html|SQLAllocEnv function (CLI) - Allocate environment handle]]\\ Bereich **Entwickeln:**\\ [[http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/c0007846.htm|Multithreaded CLI applications]]\\ [[http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/c0007848.htm|Mixed multithreaded CLI applications]]\\ Bereich **Referenzinformationen:**\\ [[http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0005835.htm|sqleAttachToCtx - Attach to Context]]\\ [[http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0005836.htm|sqleBeginCtx - Create and Attach to an Application Context]]\\ Eine Interessante Anleitung mit ziemlich ausführlichen Erläuterungen findet man auf der Seite Uni Mannheim: **Dynamic SQL** ([[http://db.informatik.uni-mannheim.de/downloads/hauptstudium/dbprak/ws0405/teil3.pdf|PDF]]). ---- Stand: 27.09.2019\\ --- //[[feedback.jk-wiki@kreick.de|: Jürgen Kreick]]// EOF