Skip to main content

Resolving SQL server error: Msg 3609, Level 16, State 2 - The transaction ended in the trigger. The batch has been aborted. (KBA6936)




KBA# 6936



Running a job from the Delphix engine for a dSource or a VDB fails with:

Msg 3609, Level 16, State 2, Server SERVER_NAME, Line 1
The transaction ended in the trigger. The batch has been aborted.



1) Delphix engine, any version
2) MSSQL environment, staging or target instance, any supported version

Applicable Delphix Versions

Click here to view the versions of the Delphix engine to which this article applies
Major Release All Sub Releases



Disable or drop the SQL server DDL triggers and run the job again.


It is possible to check for the SQL server DDL triggers via T-SQL or on Microsoft SQL management studio.


select name,is_disabled from sys.server_triggers

You can determine details about the trigger using Microsoft SQL Server Management Studio (SSMS):

  1. After connecting to the SQL Server instance in question, navigate to Server Objects -> Triggers
  2. Review the code of each trigger:

    If "Disable" is available and "Enable" grayed out, it means that the trigger is currently enabled.

    Example of code view:

The above trigger prevents all databases from being dropped.  When the Delphix jobs involving the deleting of staging or VDB databases encounter the section to DROP the object, the failure occurs.  From a user's standpoint, this is to prevent external DROP commands from executing.


Related Articles

The following articles may provide more information or related information to this article:

External reference: