SQL Query History

The SQL Query History window allows you to view, search, edit the executed queries. To open the window, click on the SQL toolbar. Alternatively, point to Other Windows on the View menu, and then click SQL Query History.

The window looks in the following way:

Setting Up SQL Query History behavior

To set up behavior of SQL Query History:

  1. On the Tools menu, click Options. The Options dialog box opens.
  2. Navigate to Environment, Documents, SQL Query History.
  3. To enable storing query SQL Query History, select the check box next to the Store executed queries within option, and set the number of days to store executed queries.
  4. Optionally, modify the path to store the SQL Query History database, maximum script size to store, and timeframe for default output of SQL Query History.

Filtering SQL Query History

To quickly find the required query, you can:

  • Type the search string into the Search box and specify query execution time frame.
  • Use sorting, grouping and filtering.

Editing Query

To edit an executed query, select it in the list and click Edit Query in the Query DDL section of the window. The query will be opened in a new SQL document.