You must have DBA privileges to run that function.
This function is used to disable logging of various information enabled by default with the TraceOn ini file option or with the trace_on() function.
Upon success zero will be returned, otherwise an error is.
SQLState | Error Code | Error Text |
---|---|---|
22005 | SR323 | "option" is not valid trace_off option |