Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Journal Audit Tool 1

Status
Not open for further replies.

hammer02

MIS
Sep 13, 1999
27
US
I'm looking for a tool to use over SQL Server that allows for interrogating the database journal to show all changes made to specific records.

I have used a similar tool on DB2 (rptjrn) which is fantastic! It proved invaluable when debugging programs or tracking down production issues.

Is what I'm asking even possible with SQL Server? I don't have much experience with SQL Server (as if you couldn't tell) and am trying to locate a tool like rptjrn.

Thanks!
MH
 
show all changes made to specific records.

That's a bit tricky. Based on your statement, you want to track only changes made to certain records, rather than all records, within a table.

The only way that comes to mind is to create a trigger for Update, and assuming you can define which records you want to track, the cursor can test if the Deleted record fits that profile and if it does, record the desired info in a second auditing table. Robert Bradley
Sr. DBA, some big company
cheap prints and oil paintings:
 
SQL has no built in journal/audit capability. As suggested, you can create your own through use of Triggers. There are third party tools available which would probably serve your needs. It may be worth your time to check them out. Product reviews are available at the sites. I'm sure there are additional products you can find if you're willing to search.

Intelligent Enterprise

HalloGram

Red Matrix Tech
Terry
------------------------------------
Experience is the hardest kind of teacher. It gives you the test first, and the lesson afterward.
 
After reviewing the links above SQLAudit looks exactly like the package I was looking for.

Thanks for the info!
MH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top