Executes the specified SQL query and returns its result set along with the types and names of retrieved columns.
Specifies an SQL statement.
A SelectedData object, specifying the query’s result set and the types and names of retrieved columns.
Use ExecuteQueryWithMetadata to query data stores for result sets. You can visualize result sets via the XPDataView. To learn how to access the resulting data, refer to How to: Access Data in SQL Query Results.
To learn more about executing SQL queries in XPO, refer to Direct SQL Queries.
The ExecuteQueryWithMetadata method sends queries directly, so the correct query syntax depends on a particular database server.