Pinal Dave (@pinaldave) header
Pinal Dave (@pinaldave) profile picture

I am SQL Server Performance Tuning Expert at @SQLAuthority

Joined May 2007
Photo by Pinal Dave (@pinaldave)Photo by Pinal Dave (@pinaldave)Photo by Pinal Dave (@pinaldave)Photo by Pinal Dave (@pinaldave)Photo by Pinal Dave (@pinaldave)Photo by Pinal Dave (@pinaldave)Photo by Pinal Dave (@pinaldave)Photo by Pinal Dave (@pinaldave)Photo by Pinal Dave (@pinaldave)Photo by Pinal Dave (@pinaldave)
SQL Server is changing. AI is changing how we work with databases. I spend my time exploring where the two meet. Here you will find: SQL Server performance tuning Query tuning and troubleshooting Practical AI ideas for DBAs Real-world scripts and demos Lessons from actual performance problems No hype. No fluff. Just practical learning around SQL Server, performance, and AI. Follow if that is your kind of content.
1
1
37
11,224
SQL Server 2025 Parameter Sensitive Plan optimization did nothing for a table where one customer held 60 percent of the rows. Its own event said why: SkewnessThresholdNotMet. Fourteen tables, one number decides it. blog.sqlauthority.com/2026/1… #SQLServer #SQLServer2025
5
632
Is your database ready for AI? Twelve questions, one point each, four results. Two of the twelve are gates. If you fail those, no total makes you ready. Take the quiz: blog.sqlauthority.com/2026/1… #AI #SQLServer
373
AI made the server cook Thanksgiving twice. Reheat the plan. Recompile the one procedure that hurts, never the whole server. Cardinal Rules, a Saturday cartoon about AI and databases. blog.sqlauthority.com/2026/1… #SQLServer #AI
522
Paging in SQL Server, five methods, same 1,200,000 rows. At page 20,000 keyset read 159 pages. OFFSET/FETCH read 3,064,485. Double TOP did not finish in 120 seconds. blog.sqlauthority.com/2026/1… #SQLServer #performance
1
5
767
COUNT(*) and COUNT(1) do the same work, 324 reads each in my test. Counting a column that allows nulls answers a different question. I asked ten DBAs how to count rows and got five answers. blog.sqlauthority.com/2026/1… #SQLServer #Performance
654
Same 500,000 orders. Same 90-day revenue report. The AI-designed schema took 7,624 logical reads. The revised one took 3,540. Before you ship an AI-generated table, ask what it will look like in year three. blog.sqlauthority.com/2026/1…
1
2
796
Same 500,000 orders. Same 90-day revenue report. The AI-designed schema took 7,624 logical reads. The revised one took 3,540. Before you ship an AI-generated table, ask what it will look like in year three. blog.sqlauthority.com/2026/1…
3
11
985
Sunday puzzle: Can you get from S to R on a 6×6 grid? Move one square at a time, up, down, left or right, without crossing a wall. Exactly one route works. See if you can trace it before you peek at the answer. blog.sqlauthority.com/2026/1…
603
A sales feed fails. An AI summary confidently reports that the region had zero sales. Five interview questions on data quality for AI, plus a five-minute exercise you can try on six customer entries. blog.sqlauthority.com/2026/1… #DataQuality #AI
1
1
623
The query was instant. Then Sam asked, "On how many rows?" Ten rows can hide a repeated scan that gets expensive at 40 million. blog.sqlauthority.com/2026/1… #SQLServer #QueryTuning
562
Technical debt used to grow only as fast as people could type. AI removed that limit, and nobody set a credit limit. The code looks clean, passes review and ships. The debt hides in code nobody has read. blog.sqlauthority.com/2026/1… #AI #TechnicalDebt
1
687
Every AI prompt is a small package leaving the building. What is inside it, who can open it, and how do you keep the wrong things at home? Privacy and AI interview questions: blog.sqlauthority.com/2026/1… #AI #DataPrivacy
581
A T-SQL crossword with a real grid and 24 clues. Every answer is a word you have typed, or a word that has typed you. Print it, grab a pencil, argue with a colleague. Answers next week. blog.sqlauthority.com/2026/1… #SQLServer #TSQL
1
648
Is it safe to let Claude near SQL Server production? Yes, as long as production only ever sees Claude's reads. The guardrail is the login, not the prompt. The 7 questions teams ask me before we build the loop: blog.sqlauthority.com/2026/1… #SQLServer #ClaudeAI
2
1
2
972
A bare "Hi" is ringing the doorbell and standing quietly on the porch. Keep the hi. Put your question right after it, before you press send. A greeting is not a conversation, it is a doorbell, so say why you rang. blog.sqlauthority.com/2026/1…
1
669
Sunday puzzle: one pile of overlapping data pages. How many sheets are really there? Count the sheets, not the coloured patches. Answer on the blog: blog.sqlauthority.com/2026/1… #SQLServer #Puzzle
574
AI ran the query in two seconds and every number came back wrong. "It ran" is the weakest test we have. Check one row you know by heart, then check the total against something older. blog.sqlauthority.com/2026/1… #SQLServer #AI
847
A certificate is a photograph of a river. It shows the water on the day you sat the exam. The river didn't stop for the photo. Keep the photograph. Then show people how you swim. blog.sqlauthority.com/2026/1… #SQLServer #Career
4
696
AI is moving at an incredible pace, and things are changing faster than we can fully understand. This is not the time for quick judgments or assumptions. Wait, watch, ask questions, and seek deeper insights before forming opinions. What seems true today may look very different tomorrow.
3
1,015