Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 11212

Procedural code automatically executed in response to a database event.

4 votes
1 answer
416 views

Catch Block Inside of a Trigger Does Not Get Hit When a SP With Dynamic SQL Errors Out - Cau...

CREATE TRIGGER [dbo].[GenerateDynamicFormItemViews] ON [dbo]. … Completion time: 2023-11-27T16:11:18.1762097-05:00 In the trigger it forces a rollback with a horrible error message. ALTER PROCEDURE [dbo]. …
0 votes
0 answers
43 views

Trigger with EXEC and Only Debug Statements After First Exception Saved [duplicate]

A Database Trigger Fires FOR CREATE_TABLE on targetDB. a. This trigger checks if the table is tblAWSObjectsand creates a table trigger. b. … Database Trigger Creates a Trigger when Replicated table tblAWSObjects gets created. …
0 votes
2 answers
204 views

Variable Value Set in TRY CATCH is Discarded When Trigger is Coded a Certain Way

I know this goes against all things logical, however, I am attempting to push this through anyway :( There is a scenario in which records are written to a table with the trigger below attached. … ALTER TRIGGER [dbo].[LoadAWSObjects] ON [dbo]. …
0 votes

Variable Value Set in TRY CATCH is Discarded When Trigger is Coded a Certain Way

I found the answer around 3/4 of the way down this documentation. Uncommittable Transactions
Ross Bush's user avatar
  • 629