Viewing SQL Results

Results from running any of the procedural objects or SQL files, execution of selected SQL statements, and creating databases, appear in the SQL Results view. SQL Results displays a History frame and a Results frame. The SQL Results view is visible by default in the Database Development and Database Debug perspectives.

SQL Results History, on the left side, lists summary information on statements executed in the current session, including:

SQL Results History fields

FieldExplanation
StatusDisplays whether the operation failed, succeeded, terminated, or is still running
OperationDisplays the SQL statement that was executed
DateDisplays the current date and time when the SQL statement or procedural object failed, completed execution, terminated, or reached a breakpoint

Results, on the right, shows details of the current statement, or the statement selected in History.

SQL Results detail tabs for multitab mode

TabExplanation
StatusShows the interim status of running the procedural object or selected text
ResultnDisplays results for a SQL query in the procedural object, SQL file, or selected statement
MessagenContains messages from the database server, such as the output of a SQL print statement

A drop-down menu lets you filter history results, set preferences for SQL Results view and export format, and Save or Export one or all result sets in the current instance.

Action buttons on the SQL Results view toolbar include:

Button graphicButton nameAction

Terminate Result

Terminate ResultTerminate a long-running instance.

Remove Result

Remove Result Remove the status, result sets, and messages of a selected SQL result instance.

Remove All Finished Results

Remove All Finished ResultsRemove all results for completed statements from the SQL Results view.
Display Result as TextDisplay the Result in Text ModeToggle between text mode and grid mode.
Display Result in single tabDisplay the Result in Single TabToggle between single-tab and multitab display.
Save Current Result Save the Current Result SetOpen the Save Result dialog and save this result set to a file in a WorkSpace project. For operations with multiple result sets, you must be in multitab mode or in grid mode.
Save All ResultsSave all Result SetsOpen the Save All Results dialog and save all results for this operation to a file in a WorkSpace project.
Export current resultExport Single ResultOpen the Export Result dialog and export this result set to a file outside the Eclipse WorkSpace. For operations with multiple result sets, you must be in multitab mode or grid mode.
Export all resultsExport All ResultsOpen the Export All Results dialog and export all results for this operation to a file outside the Eclipse WorkSpace.

Setting SQL Results View Preferences

Setting Export Format Preferences

Saving Execution Results

Exporting Execution Results

Removing Results from SQL Results View

Terminating Results from SQL Results View

Managing SQL Results History

Navigation Keys for Tables and Grids

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com