HOWTO: Access and Retrieve the SQL QueryPlan from RDOLast reviewed: February 27, 1998Article ID: Q181853 |
The information in this article applies to:
SUMMARYMany relational database management systems (RDBMS) use the query plan to optimize the path a query takes to achieve the best performance. This article demonstrates how to retrieve the query plan from SQL Server using Remote Data Object (RDO) through Visual Basic.
MORE INFORMATIONShowplan results are returned as individual low severity errors. In order to access these it is necessary to loop through the Errors collection and print out the information. NOTE: By default, the query plan is returned in reverse order as generated. The code below illustrates how to turn on and view the query plan from Visual Basic.
HOW TO RETRIEVE THE QUERY PLAN
REFERENCESFor information on interpreting the output, please refer to the SQL documentation.
|
Additional query words: queryplan show plan
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |