Table of Contents

Retrieving SQL code from a query

It can happen, for example for a debug, that you want to know which SQL code is actually executed on the database server. If statistics are activated, you only have to search for the line related to desired execution in VIGILENS_EXEC of statistics database. SQL code is stored in QUERYSQL column.

If statistics are not activated, here is how to proceed.

WARNING: the following manipulation requires :

  • administrator privileges on the machine
  • the modification of the registry, which is not insignificant
    • ⇒ save your registry before modification!
    • Vigilens will not be held responsible for the consequences of inappropriate modification of the registry.

Procedure

Only the last SQL query will be displayed in the log file.