|
Hi,
I have run into this before. It seems when you create a table
with DDS and use the K identifier to define the key, the ODBC (and JDBC it seems
like) drivers don't pick it up because it doesn't get stored in the SQL data of
the databse. If you create the table with SQL CREATE TABLE and set the key with
SQL as well, then it works fine. We have app that reads table definitions and
builds code etc.; if it can't find the key fields in this manner then it does a
query similar to this:
SELECT DBKFLD FROM QSYS.QADBKFLD
I have used the object builder in vaj, but it probably cannot
be programmed to do this (?).
Luther
|
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.