Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get the foreign keys in AS400table 1

Status
Not open for further replies.

dboira

Programmer
Dec 17, 2001
10
ES
the microsoft ADO 2.7 dll can not obtain the foreing keys of an AS400 table. I think that it's possible using the Client Access Express dll; adding it in a references of a visual basic project. So in the cwbDatabaseCatalog class there is the cwbdbRetrieveForeingKeysInfo method. could tell me someone how is the correct implementation to obtain the foreing keys of a table using this method?
 
do a select from
select * from sysibm/SQLFOREIGNKEYS
look at the records and then reduce the select so that only the table you wish is returned.

Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
I have solved it similary; making a query to a catalog tables and the where for the corresponding table on column TABLE_NAME

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top