You are here: Pega 7 Platform Database > Database administration and performance > Testing SQL queries > Viewing previously run queries

Viewing previously run queries

You can view queries that were previously run on the History tab of the Query Runner landing page. This page displays a table of previous run queries. Queries that are too long to display in the table are partially displayed followed by an ellipsis.

Note: You need the PegaRULES:DatabaseAdministrator role to access the Query Runner.

  1. Click Designer Studio > System > Database > Query Runner.
  2. Click the History tab.
  3. Optional: For partially displayed queries, click the query in the Select Query field to display the entire query.
  4. Optional: Export the results to an Excel spreadsheet or PDF file by clicking Export > Export to Excel or Export > Export to pdf.