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
SERVER Performance

9 SQL SERVER Performance Tuning Tips – SQL in Sixty Seconds #168

May 25, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Performance, SQL Server

This episode of SQL in Sixty seconds is very special as it contains 9 SQL SERVER Performance Tuning Tips. The length of the video is also longer.

Read More
Gouache painting of three snails crawling along a plank with the front one having a vermilion shell

Top Three Wait Stats and What Each One Means

March 10, 2021
Pinal Dave
SQL Tips and Tricks
SQL CPU, SQL Performance, SQL Server, SQL Wait Stats

The top three wait stats in the files people sent in were CXPACKET, SOS_SCHEDULER_YIELD and ASYNC_IO_COMPLETION. A small demo makes each wait happen and measures it with session wait statistics. The post explains what each one means and what to check next.

Read More
Gouache painting of a crowded kitchen counter of vegetable bowls with an extra cart beside it, one bowl vermilion.

Internal Temporary Tables in MySQL: When a Query Spills to Disk

February 11, 2021
Pinal Dave
SQL Performance
MariaDB, MySQL, SQL Performance, SQL Scripts

MySQL and MariaDB build internal temporary tables behind your back for GROUP BY, DISTINCT, UNION and derived tables. This post counts them with status counters, reads them in EXPLAIN, shows what pushes one to disk, and removes one with an index.

Read More
Gouache painting of a leaf under an old brass magnifying glass and a new lens with a vermilion rim

DMV Version of sp_who2: A Cleaner Session List

December 16, 2020
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Monitoring, SQL Performance, SQL Scripts, SQL Server

A DMV version of sp_who2 returns the same session details from documented views and leaves out the system tasks. This post builds the query, shows why the old spid above 50 filter fails, and stores the result in a temporary table.

Read More
Repeated source tiles sit beside a distinct selection tray and a separate two-tile jig.

SQL SERVER – Logical Processing Order of the SELECT Statement

November 18, 2020
Pinal Dave
SQL Tips and Tricks
SQL Operator, SQL Performance, SQL Scripts, SQL Server

Logical Processing places DISTINCT before TOP in a SELECT statement. Questions after my video prompted this explanation.

Read More
TOP and DISTINCT

SQL SERVER – TOP and DISTINCT – Epic Confusion – SQL in Sixty Seconds #141

November 4, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Operator, SQL Performance, SQL Scripts, SQL Server

DBAs from the client’s organization ended up an argument about how T-SQL works. The discussion was about the epic confusion about TOP and DISTINCT.

Read More
A balanced wheelbarrow carries only the needed garden pots while spare pots remain beside it

How to Write Efficient Query? – Interview Question of the Week #300

November 1, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Milestone, SQL Performance, SQL Server

Question: How to Write Efficient Query?

Answer: There is no right or wrong answer to this question. Let us learn about it today.

Read More
Previous 1 … 6 7 8 9 10 11 12 … 50 Next
  • Books
  • Testimonials
  • Privacy Policy

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