Logging SQL statements in Sybase Central

As you work with a database in Sybase Central, the application automatically generates SQL statements depending on your actions. You can keep track of these statements in a separate pane, called Server Messages And Executed SQL, or save the information to a file. The Server Messages And Executed SQL pane has a tab for each database and database server. The tab for database servers contains the same information as the database server messages window.

When you work with Interactive SQL, you can also log statements that you execute. See Logging commands.

To log SQL statements generated by Sybase Central
  1. Choose View » Server Messages And Executed SQL.

  2. In the Server Messages And Executed SQL pane, click the tab with the database icon.

  3. Right-click and choose Options.

  4. Edit the logging options.

  5. Click Save.

  6. Choose a location to save the file and click OK.

  7. Click OK.