Skip to content
see corresponding blog post
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Step 1 Create Objects.sql
Step 2 Test as SergeantX.sql
Step 3 Test as DummySuspect.sql


See corresponding blog post @natethedba:

Create a sample database CSI, a table Victims, a trigger that captures deletes against it, and an Evidence table to which said trigger writes. Also includes user and sample data to test with. Enjoy!

Requirements: SQL Server 2008R2 or higher. Tested on SQL 2016 Developer Edition.

CREATE OR ALTER syntax for trigger is only supported on SQL 2016 SP1 or higher. (For older versions, just remove the OR ALTER part.)

You can’t perform that action at this time.