Hi Steve,
You need to look at the XML that is stored in the 2DS. If you type this SQL directly into the wizard that you use to create the connection to your database, then you will have a view of the XML returned, but if you cannot, then you need to get at it programmatically. For web services this is accessed via the OutputLocation parameter, but I'm not sure how to do it with DB connections.
If all else fails, add this as a view to your database, and then just query it for all rows.
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge