C++, SQLCLI: Making a remote DB2 connection
frank kolmann <[email protected]>
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <CAB-SQvj4__Bu=oibLBT1U+H2p-c6FyrAZvHyzm4Mf4Bys_nyPQ@mail.gmail.com> |
There is some code here from IBM. (however there are 3 bugs) seems to work after bugs are fixed. https://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Fcli%2Frzadpfnaenv.htm Also. I know you loathe RPG, but the book 'Who Knew You Could Do That with RPG IV?' has a section 6.5 on SQL CLI that describes how to do SQL using SQL CLI. I am sure that the information also applies to C (ILE). It says in the book 'The database name must already be defined on the system for the connect to work. On AS/400 system, you can use the Work with Relational Database Directory Entries (WRKRDBDIRE) command to determine which data sources have been defined already and to optionally define additional data sources.' Its the database name you need for the Server name on SQLConnect. Frank -- This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/c400-l or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/c400-l.