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

Testing SQL queries

To help with developing and debugging applications, you can test SELECT statements from the Query Runner landing page. You can run queries against non-BLOB columns in your database and view the results on the landing page or export the results to an Excel spreadsheet or PDF file. A maximum of 500 rows are returned.

The Query Runner is available for Pega Cloud customers who use a Postgres database or for customers using an Oracle database on-premises or on the Cloud. You need the PegaRULES:DatabaseAdministrator role you must have the PegaRULES:DatabaseAdministrator role or the pxViewandSelectQuery privilege in Data- and Rule- in your access group to access the Query Runner.

  1. Click Designer Studio > System > Database > Query Runner.
  2. Click the Query Entry tab.
  3. Enter the query that you want to test in the SQL query field.
  4. Click Run. The results are displayed in the Results field.
  5. Optional: Export the results to an Excel spreadsheet or PDF file by clicking Export > Export to Excel or Export > Export to pdf.