Printing SQL statements, execution plans, and result sets

You can print the contents of the SQL Statements pane or query results by:

  • pressing Ctrl+P

  • choosing File » Print

When prompted, choose to print the SQL Statements or Results.

You can print a plan in the Plan Viewer by:

  • pressing the Print button

  • right-clicking the plan, and choosing Print

You can also add a header or footer and configure other formatting options in the Interactive SQL Options window.

To add a header
  1. Open the Interactive SQL Options window.

    Choose Tools » Options.

  2. On the Editor page click the Print tab.

  3. In the Header field, specify the text that you want to appear in the header. You can also click the right arrow and choose items to include in the header.