One Rowset for Each Hierarchy Level

OLE DB Programmer's Reference

The result of the preceding command contains three rowsets. Each rowset represents a complete hierarchy level in the result. The root rowset—the rowset returned from ICommand::Execute, which we call the Customer rowset—contains columns cust_no, cust_name, and city, as well as a chaptered column named order_rows. The second rowset, which we call the Orders rowset, contains columns ord_no, ord_date, and total, as well as a chaptered column named item_rows. Finally, the third rowset, which we call the Items rowset, contains columns item_no, description, quantity, unit_price, and ext_price.

A single rowset may apply to more than one level of a recursive set of objects, but the specification also uses recursion so that the rowset is defined only once in the specification and all bookmarks or chapters refer to that. Hence there is only one rowset at execution time.

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net