Disable or Enable Audit Triggers
Only under very specific circumstances should you disable audit triggers, and only very temporarily.
- access to Microsoft SQL Server Management Studio (SSMS)
- a SQL login that has read/write access to your database
- the contents of the Disable All OmniAudit Triggers.sql script and the Enable All OmniAudit Triggers.sql script, accessible by download from the Viewpoint Customer Portal
During the process of a company data copy, for example, you might want to disable the recording of changes since there will be so many all at once, and will dramatically increase the size of the audit log tables, and subsequently your Spectrum database.
In any case, disabling audit triggers should always be followed up turning them back on. If left disabled, no history will be recorded, and any needed audit activities will not be possible.
To disable the audit triggers:
- Using SQL Server Management Studio (SSMS), connect to the Spectrum database.
- Select the Spectrum database and open a New Query window.
- Choose one:
- To disable the triggers, copy the contents of the Disable All OmniAudit Triggers.sql script and paste it into the query window.
- To enable the triggers, copy the contents of the Enable All OmniAudit Triggers.sql script and paste it into the query window.
- Select Execute.
- 1 - the trigger is disabled
- 0 - the trigger is active