The Interactive SQL logging feature records SQL statements as you execute them. Statements are recorded until you stop the logging process or end the current session.
Prerequisites
There are no prerequisites for this task.
Context and remarks
You can start or stop logging using either the SQL menu, or SQL statements.
The recorded statements are stored in a log file so you can use the statements again.
Once you start logging, all SQL statements that you try to execute are logged, including ones that do not execute properly.
Open Interactive SQL.
To start logging:
Option | Action | ||
---|---|---|---|
SQL menu |
|
||
START LOGGING statement |
Execute a START LOGGING statement. For example, to start logging to a file named c:\mylogs.sql, execute the following statement:
|
To stop logging:
Option | Action | ||
---|---|---|---|
SQL menu |
Click SQL » Stop Logging. |
||
STOP LOGGING statement |
Execute the following statement:
|
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |