How To Use ADO Hierarchical Recordsets (194516)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
This article was previously published under Q194516 SUMMARY
ActiveX Data Objects (ADO) Hierarchical recordsets greatly resemble parent-
child relationships created using the SET RELATION command in native FoxPro
language. Hierarchical recordsets are created using a series of SQL
statements in conjunction with keywords that define the relationships
between them. For example, the following command creates a relation
hierarchy between a hypothetical PUBLISHERS and TITLES table that shows
which title belongs to which publisher:
SHAPE {SELECT * FROM PUBLISHERS} ;
APPEND DETAIL {SELECT * FROM Titles} ;
RELATE pub_id to pub_id AS oRSPUBTITLES
REFERENCES
For more information on the SHAPE syntax, please see the following article
in the Microsoft Knowledge Base:
189657 How To Use the ADO SHAPE Command
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbDatabase kbhowto KB194516 |
---|
|