Hi,
I have a DB2 database on the IBM iSeries platform, on which I created
several Stored Procedures with the SQLCODE as a return-parameter.
These Stored Procedures are called from a Windows application (build in
Visual Basic) using an ADO/OLE DB Provider on a IBM Client Access ODBC
driver.
On the Internet I found a whitepaper "SQL messages and codes" provided
by IBM which describes a complete list of all SQLSTATEs, SQLCODEs and
their corresponding translation.
They say all SQL-codes and messages are stored in the QSQLMSG-file, and
to translate a SQLCODE (i.e. SQLCODE -204), I have to execute the
following command from the iSeries commandline:
[color=blue][color=green]
>> DSPMSGD RANGE(SQL0204) MSGF(QSQLMSG)[/color][/color]
Question is, how can I decipher my SQLcode from my windows application?
i.e. with a SQL-command (????) like:
select * from qsys2.qsqlmsg where code = 'SQL0204'
Thanks for your help.
Twan Kennis
SKB Vragenlijst Services
Amsterdam, The Netherlands
I have a DB2 database on the IBM iSeries platform, on which I created
several Stored Procedures with the SQLCODE as a return-parameter.
These Stored Procedures are called from a Windows application (build in
Visual Basic) using an ADO/OLE DB Provider on a IBM Client Access ODBC
driver.
On the Internet I found a whitepaper "SQL messages and codes" provided
by IBM which describes a complete list of all SQLSTATEs, SQLCODEs and
their corresponding translation.
They say all SQL-codes and messages are stored in the QSQLMSG-file, and
to translate a SQLCODE (i.e. SQLCODE -204), I have to execute the
following command from the iSeries commandline:
[color=blue][color=green]
>> DSPMSGD RANGE(SQL0204) MSGF(QSQLMSG)[/color][/color]
Question is, how can I decipher my SQLcode from my windows application?
i.e. with a SQL-command (????) like:
select * from qsys2.qsqlmsg where code = 'SQL0204'
Thanks for your help.
Twan Kennis
SKB Vragenlijst Services
Amsterdam, The Netherlands
Comment