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
Two hands unpacking a mixed harvest box into separate wicker baskets of carrots, leeks, apples and radishes.

Shredding JSON Into Relational Tables in One Pass

September 28, 2021
Pinal Dave
SQL Tips and Tricks
JSON, Output Clause, SQL Server, SQL Transactions

Use shredding JSON to stage parent and child rows, validate their data, capture identity mappings, and load relational tables atomically.

Read More
5 questions

5 Questions Answered OUTPUT Clause – SQL in Sixty Seconds #135

October 17, 2020
Pinal Dave
SQL Video
Output Clause, SQL in Sixty Seconds, SQL Server

I have decided to create another SQL in Sixty Seconds video discussing the OUTPUT clause. In this video, we will discuss 5 questions.

Read More
Earlier and changed ceramic samples remain available beside an open receiving tray.

SQL SERVER – 7 Questions about OUTPUT Clause Answered

October 14, 2020
Pinal Dave
SQL Tips and Tricks
Output Clause, SQL Server

These 7 Questions about OUTPUT Clause follow my INSERT and DELETE videos. I clarify destinations, triggers and performance scope below.

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 library trolley carrying a small stack of old books toward a basement stairway, a gap left on the shelf.

Archiving Old Rows to a History Table in Small Batches

February 3, 2020
Pinal Dave
SQL Tips and Tricks
Batch, Output Clause, SQL Delete, SQL Server, SQL Transactions

Make archiving old rows atomic with DELETE OUTPUT, preserved source identifiers, bounded batches, reconciliation, and a job time limit.

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
Escargot tongs returning one shell from a deep vessel to a shallow plate

sp_executesql Output Parameters: Getting Values Back From Dynamic SQL

January 19, 2019
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, Output Clause, SQL Server

Dynamic SQL runs in its own scope, so a value only comes back if you ask twice. Here are the two mistakes that leave you with NULL.

Read More
1 2 Next
  • Books
  • Testimonials
  • Privacy Policy

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