I have an ecommerce website in .NET and using MS SQL Server Express, Version info:
Microsoft SQL Server 2014 – 12.0.4100.1 (X64) Apr 20 2015 17:29:27
Copyright (c) Microsoft Corporation Express Edition (64-bit) on
Windows NT 6.3 (Build 9600: ) (Hypervisor)
There is a DELETE query running from my code and I can not figure out what is triggering it. (My entire system shows one place that has that Delete code, but that can not be the problem.)
I need to find out from the database when the Delete is running so I can try to use that Data to help me solve my problem.
Even if I can't find going backwards, I would like to install/configure something to help me find it in the future, as it is a recurring problem
Best Answer
Here is an example of creating a
delete
trigger to capture the results of thedelete