# setTraceMode {#settracemode}

**Parent topic:**[SQL Trace](../../../Programming/SQLStatements/SQLTrace/SQLTrace.md)

## Syntax {#syntax}

setTraceMode\(mode\)

## Arguments {#arguments}

**mode** is a Boolean for enabling \(true\) and disabling \(false\) SQL tracing.

## Details {#details}

Enable or disable SQL tracing of SQL statements.

Note:

-   Execute `setTraceMode(true)` to enable SQL tracing and execute `setTraceMode(false)` to disable it.

-   This command must be executed separately from the script you want to trace.


