This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL SERVER - Script to Audit Login and Role Member Change

SQL SERVER – Script to Audit Login and Role Member Change

April 6, 2017
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Login, SQL Scripts, SQL Server

A script to audit login and role member changes in SQL Server, tested end to end, including the failed attempts most people never think to capture.

Read More
A padlocked iron gate across a loading bay lit by one amber wall lamp

SQL SERVER – Error 33222, Level 16 – Audit ‘MyAudit’ Failed to Start

March 31, 2017
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Error Messages, SQL Scripts, SQL Server

Error 33222 says only that the audit failed to start. Reproduced on SQL Server 2025: where the real reason hides, and why CREATE succeeded.

Read More
One coat on a single hook by a door, with four wet coats heaped on the floor beneath

Triggers That Assume One Row: Fixing Them for Multi-Row Updates

February 1, 2017
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Server, SQL Transactions, SQL Trigger

Fix triggers for multi-row updates by joining inserted and deleted, testing complete audit coverage, and keeping transaction work small.

Read More
A hand carving a new notch into a wooden tally stick hung beside an orchard gate

SQL Server Audit: Tracking Who Read or Changed Sensitive Tables

July 12, 2016
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL Compliance, SQL Server Security

Configure SQL Server Audit for reads and changes, inspect file records by user and time, and plan retention and target failures.

Read More
An old park bench with chipped slate blue paint showing earlier coats beneath, work gloves and a paint tin on the seat.

Who Changed This Row? Temporal History With FOR SYSTEM_TIME ALL

June 17, 2016
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Scripts, SQL Server, Temporal Table

Read FOR SYSTEM_TIME ALL with LAG to compare row versions, choose temporal window boundaries, and record an actor when identity matters.

Read More
A chessboard mid-game on a cafe table with empty chairs, one knight off its square, two cold cups of coffee.

Who Changed This Row? Auditing Data Changes

June 10, 2015
Pinal Dave
SQL Tips and Tricks
Change Data Capture, SQL Audit, SQL Server, SQL Trigger, Temporal Table

Auditing data changes requires choosing whether you need old values, new values, actor identity, or a change feed, then testing the cost.

Read More
Audit location tool window.

SQL SERVER – How to Chang Audit Location?

November 17, 2014
Pinal Dave
SQL Tips and Tricks
SQL Audit

SQL Server auditing is a hidden gem. Learn how to change the audit location after it is created, for example when a network share fails.

Read More
Previous 1 2 3 4 5 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com