Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats a generic audit trail trigger to track table activity?

0
Posted

Whats a generic audit trail trigger to track table activity?

0

Writing a generic audit trail trigger in SQL Server can be a bit tricky, as it requires manipulation of a bitmask exposed by the COLUMNS_UPDATED function. You’ll also need to figure out how to store disparate data types in some generic fashion, which might be difficult if your database uses TEXT, NTEXT, or IMAGE columns. Luckily, SQL Server MVP Nigel Rivett has already done most of the work. You can find his audit trigger at Nigel’s Web site. Adam Machanic, SQL Server 2005 Expert Return to SQL Server tables FAQs 8.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123