SQL Script Editor
Top  Previous  Next


Using this editor, you can view, edit and execute SQL scripts.

In the Script area you can view and edit the SQL script text. You can use quick code to fasten this process: when you type the first word symbols in the edit area, you are offered some variants for the word completion in a popup list (analogue of the Code Insight in Delphi IDE).

The popup menu of the edit area contains standard functions for working with text (Cut, Copy, Paste, Find, Replace, Toggle Bookmarks, etc) and also functions for processing the script, which allow you to save/load script to/from file, and preview/print script.

The Object Explorer at the left of the window displays the tree of objects, used in the current script and allows you to get to the needed script fragment quickly by clicking the object in the tree.

To execute the script, click button Execute . You can also execute script right from the file without opening it by clicking button Execute Script from File . To stop executing script, click button Stop Script .

The results of executing the script are displayed on the Results page. This text can't be edited, but can be copied to the clipboard.

The errors in executing the script are displayed in the bottom area of the window. The popup menu of this area allows you to copy the selected error message or to copy all the error messages.

If you want the script to be aborted on errors, check option Abort Script on Error in the Environment Options window on Tools: SQL Script page. In the case of successful executing the script you will receive message, informing you about the execution time.

SQL Script Toolbar  
 
Button
Action


Enable/Disable Parsing
Shows/hides the tree of objects, used in the script, at the left of the window.
New Script
Creates a new clear script.
Open Script
Drops down, allowing you to load or execute a script from the *.sql file.
Save Script
Drops down, allowing you to save the current script or to save it with a new name to the *.sql file.
Execute Script from File
Loads the script from the *.sql file and executes it.
Run Script
Runs the script for execution.
Stop Script
Stops the script execution.
Default Size and Position
Brings the window to its default size and position (restricted by the main window and DB Explorer).
Databases
Drops down with a list of connected databases, allowing you to select the database for the script.


See also:
SQL Editor
SQL Monitor
Extract Metadata Expert


Availability:
Windows Professional

Yes

Windows Lite

Yes

Linux Professional

Yes

Linux Lite

Yes