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
A torch beam lighting fine scratches around a brass keyhole on a front door at night, a key on the mat

Auditing Failed Logins With the Error Log and Extended Events

September 15, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL Extended Events, SQL Login, SQL Server Security

Investigate failed logins with the SQL Server error log and a focused Extended Events session, then group attempts and decide what to do.

Read More
Dandelion seeds drifting over a garden wall toward neighboring lawns already dotted with dandelions.

Auditing WITH GRANT OPTION: Who Can Hand Out Permissions

April 6, 2013
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Login, SQL Server, SQL Server Security

Audit WITH GRANT OPTION at database and server scope, trace delegated permissions, and remove delegation with a reviewed CASCADE plan.

Read More
Gouache painting: a wooden crate riding on a long luggage trolley through three open stone archways in a row, a small vermilion luggage tag tied to the crate's rope handle

CONTEXT_INFO: Passing a Value Through a Session

January 14, 2013
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Scripts, SQL Trigger

CONTEXT_INFO lets you attach a small value to a session and read it anywhere in that session, even inside a trigger. This post tests SET CONTEXT_INFO on SQL Server 2025, uses it to log who changed a price, and compares it with SESSION_CONTEXT.

Read More
A hand holding a steel punch over a new silver spoon on an anvil, ready to stamp its maker's mark.

Audit Columns From Day One: CreatedAt, UpdatedAt and Who Changed It

October 17, 2012
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Constraint and Keys, SQL DateTime, SQL Server, SQL Trigger

Add audit columns with UTC timestamps and trusted change identities, maintain updates in procedures, and know when history is needed.

Read More
A line of footprints in fresh snow crossing a courtyard to a closed door, with no one in sight.

Reading the Transaction Log With fn_dblog

September 29, 2011
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Backup and Restore, SQL Server, Transaction Log, Undocumented SQL

fn_dblog can expose transaction-log records during a narrow investigation, but retention and missing user context make it a last resort.

Read More
A harbor post notched with flood marks, a hand adding a fresh red notch

Keeping a Change Log for Every Database

August 31, 2010
Pinal Dave
SQL Tips and Tricks
DBA, Schema, SQL Audit, SQL Documentation

A change log for every database records what changed, when, why, and by whom, with a simple table and a habit of updating it.

Read More
A museum display case with an untouched porcelain teacup inside and a clear set of fingerprints on the glass.

Auditing SELECT Statements on Sensitive Tables

October 18, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL Compliance, SQL Server Security

Auditing SELECT statements on sensitive tables needs a narrow database audit, protected files, volume checks, and active review.

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

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