How do you turn off SQL output when running a script in "Scripts - Background"?

seberly
Giga Expert

Getting something similar to the following for scripts run through the "Scripts - Background" module:

Time: 0:00:00.002 id: <instance name redacted>[glide.10] for: SELECT task0.`sys_id` FROM task task0 WHERE task0.`sys_class_name` = 'sc_req_item'....

It seems the equivalent SQL is being output for every GlideRecord DB transaction.   Thoughts?

Thanks,

Scott

1 ACCEPTED SOLUTION

Mwatkins
ServiceNow Employee
ServiceNow Employee

Do you have the glide.db.trace property set to true in your instance? (check the sys_properties table)


If it doesn't exist, try adding it and setting it to type boolean or string with value "false"


View solution in original post

11 REPLIES 11

Matt, That did it!   Thanks so much! Scott


Mwatkins
ServiceNow Employee
ServiceNow Employee

You are welcome, Scott