Entering content frame

Background documentation Logging SQL Statements (Microsoft Windows) Locate the document in its SAP Library structure

Use

Select the Trace On option for a data source, if you want to log the SQL statements that are transferred from the application to the database system. You can set this option for existing data sources or when creating a new data source.

The following data is recorded:

Procedure

  1. Start the ODBC Data Source Administrator by choosing Start ® Settings ® Control Panel ® Administrative Tools ® Data Sources.
  2. Choose Add.
  3. Choose the SAP DB ODBC driver and then Finish.
  4. Specify the name of the data source, the name of the database instance, and the name of the database server, and choose Options.
  5. Select the Trace On field or choose a file using Browse to which the log should be written.
  6. Confirm the windows until the ODBC Data Source Administrator closes.

Result

The next time that you log on to the database server using this data source, the system logs all SQL statements that are transferred by the application to the database system.

Leaving content frame