EXEC ADO DECLARE drOrder DATAROWS FOR SELECT OrderID, OrderDate FROM Orders WHERE CHILDREN OF drCust(custord) END-EXEC