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
Gouache painting of three wooden shape sorter boxes with a single vermilion peg in front of them

Delete Qualified Rows From Multiple Tables: A SQL Puzzle

July 13, 2019
Pinal Dave
SQL Puzzle
SQL Delete, SQL Performance, SQL Scripts

Delete qualified rows from multiple tables with as few logical reads as you can. This puzzle gives a setup script for three small tables, the two rules for the delete and a starting script that costs 19 logical reads. Your task is to beat that number and stay correct.

Read More
A walker taking a short straight garden path to a cottage door beside an elaborate hedge maze

Trivial Plan: Why Some Queries Skip Full Optimization

July 1, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL Performance, SQL Server

Identify a trivial plan in SSMS and cached XML, understand skipped optimizer work, and compare a more complex query without forcing it.

Read More
Two bowls hold equal groups of qualifying red beads while green beads remain outside

What is Faster, SUM or COUNT? – Interview Question of the Week #231

June 30, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Performance, SQL Scripts, SQL Server

Question: What is Faster, SUM or COUNT? Answer: Both are the same. I was asked this question during my Comprehensive Database Performance Health Check.

Read More
A string of glowing garden lights with one dark bulb, a replacement waiting on a stepladder.

Removing a Bad Plan From Cache Without Clearing Everything

June 24, 2019
Pinal Dave
SQL Performance
Execution Plan, Parameter Sniffing, SQL Cache, SQL Performance, SQL Server

Remove one bad plan from cache by handle, compare narrower recompilation choices, and fix the cause so the plan stays healthy.

Read More
coffee mug

Coffee Mug – Indexes and SELECT Queries

June 5, 2019
Pinal Dave
Personal
SQL Index, SQL Performance

Sometimes I feel like I have become a kid again. This morning I received a coffee mug with printed quotes of Indexes and SELECT Queries.

Read More
A sorted tray is ready for immediate use in front of ordinary closed storage boxes

How to List All Memory Optimized Tables in SQL Server? – Interview Question of the Week #227

June 2, 2019
Pinal Dave
SQL Interview Questions and Answers
In-Memory OLTP, SQL DMV, SQL Memory, SQL Performance

Question: How to List All Memory Optimized Tables in SQL Server? We will see two different scripts here: One for Database and Second for Tables.

Read More
Gouache painting of a vermilion spice rack crowding a kitchen counter beside a cutting board of sliced vegetables

Index Slows Down SELECT? What an Unused Index Costs You

May 28, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Performance, SQL Statistics

An index slows down SELECT queries only in small ways when the plan never reads it. This post measures compile memory with twelve unused indexes, shows the plan change when a related index appears, and counts what every insert and update pays. The real bill arrives on writes.

Read More
Previous 1 … 17 18 19 20 21 22 23 … 50 Next
  • Books
  • Testimonials
  • Privacy Policy

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