Views:
Question:
How can I check the DWData database for triggers?

Answer:
By product design, any database triggers within DWData are not supported as they can be known to cause problems within the database or when upgrading DocuWare. 
If you suspect there are some existing in the Database, please run the following query:
Note: This query would be applicable to MSSQL databases ONLY.
 
Use Dwdata;
SELECT  table_name = OBJECT_NAME(parent_object_id) ,
        trigger_name = name ,
        trigger_owner = USER_NAME(schema_id) ,
        OBJECTPROPERTY(object_id, 'ExecIsUpdateTrigger') AS isupdate ,
        OBJECTPROPERTY(object_id, 'ExecIsDeleteTrigger') AS isdelete ,
        OBJECTPROPERTY(object_id, 'ExecIsInsertTrigger') AS isinsert ,
        OBJECTPROPERTY(object_id, 'ExecIsAfterTrigger') AS isafter ,
        OBJECTPROPERTY(object_id, 'ExecIsInsteadOfTrigger') AS isinsteadof ,
        CASE OBJECTPROPERTY(object_id, 'ExecIsTriggerDisabled')
          WHEN 1 THEN 'Disabled'
          ELSE 'Enabled'
        END AS status
FROM    sys.objects
WHERE   type = 'TR'
ORDER BY OBJECT_NAME(parent_object_id)

 
Once the query has run, the result will display which tables have triggers created and if they are Enabled.

 
KBA is applicable to On-premise Organizations ONLY.