Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Debug a Trigger
Message
From
27/02/2018 09:18:58
 
 
To
26/02/2018 12:40:03
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2012
Miscellaneous
Thread ID:
01658439
Message ID:
01658458
Views:
46
>Hi,
>
>I have a client with a database that has a trigger that should run when records get inserted, updated or deleted. The trigger updates the quantity on hand of a stock item in another table.
>
>The trigger runs fine on my database and all my other clients' but is apparently not running on just this one database.
>
>I checked that the triggers are enabled and that the code is exactly the same as on my working database.
>
>Is there a way that I can debug this to see if the trigger is actually running?
>
>This is a VFP front end updating a SQL Server 2012 database.

The problem was a bug in my trigger code that was hidden in certain instances by a coincidence of data values.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform