Back to OIM Explorer

dbo.QBM_TDDialogUser

Database TriggerSQL_TRIGGERSandbox DB

Database Trigger on DialogUser. Trigger parent table: DialogUser

Source: sandbox-db sys.sql_modules

Source size: 478 characters

Interpretation

  • Database trigger. Treat parent table and enqueue/object-layer calls as the main relation points.

Relations

  • Trigger parent table: DialogUser

Typed Edges

  • trigger on table DialogUser Trigger parent table: DialogUser
  • references source dbo.QBM_PSessionErrorAdd source text reference

Complete Source

SQL30 lines
1CREATE trigger QBM_TDDialogUser2  ON DialogUser FOR3DELETE NOT FOR Replication4AS5BEGIN6  DECLARE @ProcName nvarchar(64) = object_name(@@procid)7  DECLARE @DebugSwitch int = 08  BEGIN TRY9    IF EXISTS(10      SELECT TOP 1 111      FROM deleted)12    GOTO start13    RETURN start:14    IF @Debugswitch > 015    BEGIN16      print 'entry : ' + @ProcName17    END18  END TRY19  BEGIN CATCH20    EXEC QBM_PSessionErrorAdd DEFAULT21    RAISERROR('',22    18,23    1)24      WITH NOWAIT25  END CATCH26  IF @Debugswitch > 027  BEGIN28    print 'exit : ' + @ProcName29  END30END
Open raw exported source
SQL ยท Raw5 lines
1  create   trigger QBM_TDDialogUser on DialogUser  for Delete not for Replication as begin  declare @ProcName nvarchar(64) = object_name(@@procid2) declare @DebugSwitch int = 0 BEGIN TRY if exists (select top 1 1 from deleted) goto start return start: if @Debugswitch > 0 begin print 'entry : ' + 3@ProcName end END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH if @Debugswitch > 0 begin print 'exit : '4 + @ProcName end end 5