Auditing

External Article

Designing Tables for Audit Data in SQL Server

  • Article

My company is just starting to look at adding functionality to retain historical data for key tables and columns for auditing purposes in many of our SQL Server databases. I have seen some of your recent tips related to triggers (Forcing Trigger Firing Order in SQL Server and Trigger Alternatives in SQL Server - OUTPUT Clause). Based on using triggers or a similar technology, what is the best way to store the historical data?

2008-04-15

5,915 reads

SQLServerCentral Article

Monitoring and Recording DDL changes on SQL 2005 (NARC)

  • Article

Auditing activities on your database servers becomes more important all the time. But ensuring that schema changes do not occur without your knowledge may be more important for a stable system. James Greaves brings us a great technique using DDL triggers for doing this.

4.52 (21)

You rated this post out of 5. Change rating

2008-02-29

7,474 reads

Blogs

Convert SQL Audit Files to a CSV Using Read-SqlXEvent

By

SQL Server Audit is an efficient way to track and log events that occur...

Control Flow Restartability in Azure Data Factory

By

I presented at SQL Saturday Pittshburgh this past weekend about populating your data warehouse...

Monday Monitor Tips: Knowing Your RPO

By

A customer was asking recently about the RPO for their estate, and I showed...

Read the latest Blogs

Forums

The Modern Algorithm of Chance

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Modern Algorithm of Chance

Use Logic Apps To Save Money In Azure: Data Engineering in Fabric

By John Miner

Comments posted to this topic are about the item Use Logic Apps To Save...

AWS Services Using SQL for Big Data Analysis

By Additional Articles

Comments posted to this topic are about the item AWS Services Using SQL for...

Visit the forum

Question of the Day

Crazy Code I

I have this data in my Customer table:

CustomerID CustomerName
1          Steve
2          Andy
3          Brian
4          Allen
5          Devin
I run this code:
SELECT
  t.CustomerID
, c.value
FROM
  ( SELECT
      CustomerID
    , STRING_AGG (CustomerName, ',') AS me
    FROM customer
    GROUP BY CustomerID) t
  CROSS APPLY STRING_SPLIT(me, ',') c;
What is returned?

See possible answers