Entering content frame

 Logging SQL Statements (Microsoft Windows) 

Use

Select the Trace On option for a data source, if you want to log the SQL statements that are sent 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:

·        SQL statement

·        Execution time

·        Start and end of a session

·        CONNECT parameters

·        Input and output parameters

Procedure

...

       1.      Start the ODBC Data Source Administrator by choosing Start ® Settings ® Control Panel ® Administrative Tools ® Data Sources.

       2.      Choose Add.

       3.      Choose the MaxDB 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 use Browse to choose a file to which you want the log to be written.

       6.      Confirm the windows until the ODBC Data Source Administrator closes.

Result

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

 

Leaving content frame