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 crowd of seagulls mobbing the hatch of a small beach kiosk while a hand pulls the shutter halfway down.

Logon Storms: Protecting SQL Server From Connection Floods

April 28, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Connection, SQL Login, SQL Server Security, SQL Trigger

Diagnose SQL Server logon storms, control connection growth, test a limited logon trigger, and preserve administrator recovery access.

Read More
delete

Remove Trigger for Delete – SQL in Sixty Seconds #133

October 13, 2020
Pinal Dave
SQL Video
Output Clause, SQL Delete, SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Trigger

I am involved in the Comprehensive Database Performance Health Check. Today we will discuss how we can remove triggers for the Delete statement. 

Read More
A basket keeps the cut stems removed from a rose bush

How to Capture Deleted Rows Without Trigger? – Interview Question of the Week #297

October 11, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Delete, SQL Performance, SQL Scripts, SQL Server, SQL Trigger

Question: How to Capture Deleted Rows Without Trigger?
Answer: I was recently asked by my client during the Comprehensive Database Performance Health Check.

Read More
A hand watering the one dry pot in a row of geraniums on a porch step, the other pots left alone

Skipping No-Op Updates: Changing Only Rows That Really Differ

December 16, 2019
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Scripts, SQL Server, SQL Server 2022, SQL Trigger

Skip no-op updates with NULL-safe EXCEPT or IS DISTINCT FROM, inspect affected counts, and avoid unnecessary rowversion and trigger changes.

Read More
A shepherd seen from behind counting sheep one by one through a half-open field gate, a red crook against the post.

ROWCOUNT_BIG and @@ROWCOUNT: Checking What a Statement Changed

September 25, 2019
Pinal Dave
SQL Tips and Tricks
Output Clause, SQL Function, SQL Scripts, SQL Server, SQL Trigger

Capture ROWCOUNT_BIG immediately after a change, validate expected counts, and handle NOCOUNT, triggers, and MERGE without stale values.

Read More
One brass mechanism pulls a red wire that activates its neighboring mechanisms

How to List All DML Triggers Created or Modified in the Last N Days in SQL Server? – Interview Question of the Week #242

September 15, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Trigger

List all DML triggers created or modified in the last N days in SQL Server, and why modify_date moves when nobody edited the code.

Read More
A plaster hawk beside one freshly plastered wall patch and one unchanged patch

Comparing Old and New Values in a Trigger With inserted and deleted

October 10, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server, SQL Trigger

Build a small audit trigger that joins inserted and deleted, handles NULL changes correctly and ignores saves that change nothing.

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

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