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
Jul21

SQL SERVER – Legal CASE Defaults and Row Dependent Values

Pinal Dave
SQL Tips and Tricks
SQL CASE, SQL Scripts, SQL Server, SQL Table Operation
No Comments

A CASE Expression can appear in a default, but cannot reference another row column there. My earlier blanket prohibition was incorrect.

Continue Reading
Jul20

Queries Using Specific Index – SQL in Sixty Seconds #180

Pinal Dave
SQL Video
SQL DMV, SQL in Sixty Seconds, SQL Index, SQL Server
No Comments

The challenge I face is that often DBAs ask me to prove that indexes are really not used by queries. Let us learn about Queries Using Specific Index.

Continue Reading
Jul19

Self-Referencing Foreign Keys: Managers, Employees and Deletes

Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Constraint and Keys, SQL Server
No Comments

Delete a manager and SQL Server says no, which is good. See how to reassign reports safely and how to catch loops the foreign key allows.

Continue Reading
Jul16

SQL SERVER – Find Instance Name for Availability Group Listener

Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Instance, SQL Scripts, SQL Server
No Comments

An Availability Group Listener identifies a connection endpoint rather than a separate engine instance. I query where this connection actually arrived.

Continue Reading
Jul15

Find Queries Using an Index in the SQL Server Plan Cache

Pinal Dave
SQL Performance
SQL Cache, SQL DMV, SQL Index, SQL Scripts
1 Comment

Find queries using an index by searching cached plans for its exact name. See the script, a surprise result, and what an unused index costs in SQL Server.

Continue Reading
Jul14

Query Hints on a View in SQL Server: Where OPTION Goes

Pinal Dave
SQL Tips and Tricks
Execution Plan, Query Hint, SQL Scripts, SQL View
No Comments

Query hints on a view cannot sit inside the view. Learn where OPTION goes, what a view may contain, and how Query Store hints help.

Continue Reading
Jul13

SQL SERVER – Altering Column – From NULL to NOT NULL

Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server
1 Comment

Altering Column nullability to NOT NULL requires resolving existing NULLs under an approved data rule. A customer used empty strings.

Continue Reading
Previous 1 … 62 63 64 65 66 67 68 … 846 Next

SQL Server slow? Let's fix it together in about four hours.

Pinal Dave

In my Comprehensive Database Performance Health Check, you share your screen, I guide you, and we fix your biggest performance troublemakers. No passwords. No remote access.

You keep every script, and the know-how to fix it yourself next time.

Want your whole team to learn it?

My Practical Workshop has no PowerPoint, just live demos. My AI Enablement Workshop shows your team where AI saves hours, and where it quietly costs them.

Over 400 customers have worked with me this way, and not one shared a password. See all consulting options.


Who We Are

Pinal Dave is an SQL Server Performance Tuning Expert and independent consultant with over 24 years of hands-on experience. He holds a Masters of Science degree and numerous database certifications.

Pinal has authored 19 books and 125 Pluralsight courses. To freely share his knowledge and help others build their expertise, Pinal has also written more than 5,800 database tech articles on his blog at https://blog.sqlauthority.com.

Pinal is also a CrossFit Level 1 Trainer (CF-L1) and CrossFit Level 2 Trainer (CF-L2).


Nupur Dave is a social media enthusiast and an independent consultant. She primarily focuses on the database domain, helping clients build short and long-term multi-channel campaigns to drive leads for their sales pipeline.


Shaivi Pinalkumar Dave is a book author and a women’s artistic gymnast.

  • Books
  • Testimonials
  • Privacy Policy

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