16.5.7.2. Toolbar

The toolbar features ten buttons, as shown in the following screenshot:

Figure 16.28. SQL Editor - Toolbar

SQL Editor - Toolbar

From left to right these are:

  • Create a New SQL Script File: Creates a new SQL Script tab where SQL code can be entered.

  • Open a SQL Script File: Cicking this button allows any saved SQL script to be loaded ready for execution. The script will be displayed in the SQL Query area.

  • Save SQL Script to File: Clicking this button allows the currently loaded SQL script to be saved to a file specified by the user.

  • Save SQL to Snippets List: SQL code snippets saved here can be given a name. They will appear in the SQL Snippets palette in the SQL Editor sidebar.

  • Execute SQL Script in Connected Server: Executes the currently loaded SQL script. Results are displayed in one or more Results tabs.

  • Execute Current SQL Statement in Connected Server: Executes the current SQL statement. Results are displayed in one or more Results tabs.

  • Explain (All or Selection): Explain SQL statements, or the currently selected one.

  • Stop the query being executed: Halts execution of the currently executing SQL script. This restarts the connection to the database server.

  • Toggle whether execution of SQL script should continue after failed statements: If the red 'breakpoint' circle is displayed the script will finish on a statement that fails. If the button is depressed so that the green arrow is displayed, then execution will continue past the failed code, possibly generating additional result sets. Any error generated from attempting to execute the faulty statement will be recorded in either case in the Output tabsheet.

  • Commit: Commits a transaction.

  • Rollback: Rolls back a transaction.

  • Toggle Auto-Commit Mode: If selected, transactions will automatically be committed.

  • Reconnect to DBMS: Re-establishes the database connection.

  • Refresh state of database structures: Refreshes the view of Schemata, Tables, Views and Routines that appears in the Live Overview Schema tabsheet. For example, if a SQL script creates a new table, it will not appear in the Overview tab until the refresh toolbar button is pressed.

  • Toggle whether query result tabs should be kept between queries by default: Normally when a script is executed any results generated from previous executions of the script are lost, and the new results displayed in the results tab. If this toggle button is pressed, so that the pin appears inserted, results will be retained between executions. Each execution of the script will create a new Results tab containing the result set.

Copyright © 2010-2024 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout