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 mousetrap style bar switch on a doorframe connected by a taut wire to a small brass bell

What Is a Trigger in SQL Server?

June 17, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

A trigger in SQL Server runs because something else happened, and you never call it. The inserted and deleted tables, why it fires once per statement and not once per row, and when to reach for something else.

Read More
A kitchen pass with a single order pad and a full tray of dishes waiting beside it

What Is a Stored Procedure in SQL Server?

June 14, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

A stored procedure is SQL with a name, a door and a contract. Why granting EXECUTE beats granting table access, what parameters buy you, and the plan reuse story people get half right.

Read More
A pair of brass scales on a counter with a coin resting in each pan, perfectly level

What Is a Transaction in SQL Server?

June 12, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

A transaction in SQL Server is a group of changes that all happen or none do. A rollback that undid 16,440 rows, what ACID means in four short words, and the open transaction that quietly fills a drive.

Read More
A glass vase of beans in colored layers, a scoop from the top holding only red beans.

TABLESAMPLE Samples Pages, Not Rows: Sampling a Large Table Right

June 1, 2013
Pinal Dave
SQL Tips and Tricks
SQL Random, SQL Scripts, SQL Server

Compare TABLESAMPLE page sampling with NEWID sorting and CHECKSUM filters by row count, reads, spread, and repeatability.

Read More
SQL SERVER - Puzzle SET ANSI_NULLS and Resultset - SQL in Sixty Seconds #052

SQL SERVER – Puzzle SET ANSI_NULLS and Resultset – SQL in Sixty Seconds #052

May 29, 2013
Pinal Dave
SQL Video
Database, SQL Identity, SQL in Sixty Seconds, SQL Scripts

I take my puzzle to the next level with SET ANSI_NULLS OFF. Why do two different queries now return almost the same results? Watch the 60 second video.

Read More
Empty result in query.

SQL SERVER- Solution – SQL Puzzle of SET ANSI_NULL

May 28, 2013
Pinal Dave
SQL Puzzle
SQL Scripts

The solution to my Puzzle of SET ANSI_NULL: why IN returns a row but NOT IN returns nothing when the list has a NULL, and how SET ANSI_NULLS ON explains it.

Read More
SQL SERVER - How to use xp_sscanf in Real World Scenario?

SQL SERVER – How to use xp_sscanf in Real World Scenario?

May 14, 2013
Pinal Dave
SQL Puzzle
SQL Scripts

I came across the extended stored procedure xp_sscanf and could not find a real world use for it. Here is how it works. Can you tell me where to use it?

Read More
Previous 1 … 187 188 189 190 191 192 193 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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