Use SQL Server Triggers to Track Unauthorized Database Changes
SQL Server can do all the work of tracking database modifications by responding to changes with predefined tasks.
by Susan Sales Harkins,
Arthur Fuller
October 21, 2002
SQL Server triggers are a powerful feature, yet they often take a backseat to stored procedures and user-defined functionsa fate they don't deserve. A trigger can provide an easy-to-implement solution to even the most complicated problem. One task in particular, tracking unauthorized changes in a database, can be transformed from a lengthy and difficult security task to a automated routine with the use of triggers. The secret is to store data about each change as it occurs, so you can determine who's changing data and when. The results of this tracking will help you determine whether a data change is a simple mistake in reporting, an unintentional mistake by an honest employee, or a real security hole that needs filling.
Knowing an error has occurred is fairly useless unless you can identify its source and prevent a recurrence. This article shows how triggers can serve as routine auditing procedures that track errors whether they're due to human error or program logic. You will learn how quickly triggers can help you track down errors or simply create a historical record of normal processes.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!