Cicode Programming Reference > Cicode Function Categories > SQL Functions Introduction > SQLTraceOn

SQLTraceOn

Turns on a debug trace. Use this function to begin tracing function calls that are made to the database. The information is written to a log file.

Syntax

SQLTraceOn(sFile)

sFile:

The output file name for the debug trace.

Return Value

0 (zero) if successful, otherwise an error number is returned. (For details of the 307 error code, call the SQLErrMsg function).

Related Functions

SQLBeginTran, SQLCommit, SQLConnect, SQLDisconnect, SQLEnd, SQLErrMsg, SQLExec, SQLFieldInfo, SQLGetField, SQLInfo, SQLNext, SQLNoFields, SQLNumChange, SQLRollBack, SQLTraceOff

Example

See SQLFieldInfo

See Also

SQL Functions