<%@ page language="C#" masterpagefile="~/templates/Documentation.master" inherits="Page" pagetitle="Displaying a Query Plan" keywords="Displaying a Query Plan"%>

Displaying a Query Plan

This section describes the prerequisites and procedure for displaying a query plan in Stylus Studio.

Prerequisites

In order to display a query plan in Stylus Studio, you need to specify the DataDirect XQuery® processor for your XQuery. See Selecting an XQuery Processor for more information.

How to display a query plan

To display a query plan:
1. Open the XQuery whose query plan you want to view in the Stylus Studio XQuery Editor.
2. Make sure your XQuery's processor is set to the DataDirect XQuery® processor. See Selecting an XQuery Processor if you need help with this step.
3. Click the Plan tab in the XQuery Editor.

Stylus Studio displays the query plan.