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 shell bead necklace with repeated shell colors beside one specimen of each color

Running Distinct Counts: Working Around COUNT(DISTINCT) OVER

July 27, 2023
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

Your report wants unique customers so far, and SQL Server refuses COUNT(DISTINCT) over a window. Flag each first appearance and add up the flags instead.

Read More
A wisteria-covered pergola shading a garden table, a newly added chair already sitting in its shade.

Schema-Level Permissions: Granting on a Schema, Not Each Object

July 25, 2023
Pinal Dave
SQL Tips and Tricks
DBA, Schema, SQL Server, SQL Server Security

Apply schema-level permissions to a database role, include future tables automatically, separate internal data, and review grants.

Read More
A lawn bowls green with the jack in place, a bowl rolling toward it and a hand holding a measuring string.

Given-When-Then for Database Tests

July 24, 2023
Pinal Dave
SQL Tips and Tricks
Best Practices, Software Development, SQL Server, SQL Stored Procedure, Testing

Use Given-When-Then for readable database tests with known input, explicit THROW checks, and transaction rollback after each case.

Read More
ISNULL and COALESCE

SQL SERVER – Difference Between ISNULL and COALESCE

June 15, 2023
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server

SQL Server provides two commonly used functions, ISNULL and COALESCE, to address this requirement. Difference Between ISNULL and COALESCE

Read More
Count occurrences of a specific value in a column.

SQL SERVER – Count Occurrences of a Specific Value in a Column

June 12, 2023
Pinal Dave
SQL Interview Questions and Answers
SQL Group By, SQL Server

Here is the exact question – How to Count Occurrences of a Specific Value in a Column? Well, honestly, the answer is very simple.

Read More
A hand comparing a skein of green wool with one basket of green yarns in a shop full of colors

Exact Vector Search Cost: Filtering Before VECTOR_DISTANCE

June 8, 2023
Pinal Dave
SQL Performance
AI, SQL Index, SQL Performance, SQL Server

Measure exact vector search with VECTOR_DISTANCE, reduce candidates through indexed filters, and compare plans and measured IO.

Read More
A hand pulling a lint filter packed thick with grey fluff from a tumble dryer full of damp towels.

Query Store Wait Stats: Why a Query Was Slow, Not Just That It Was

May 30, 2023
Pinal Dave
SQL Performance
Query Store, SQL Performance, SQL Server, SQL Wait Stats

Read Query Store wait stats by query, plan, interval, and category, then compare matched windows with execution counts and capture coverage.

Read More
Previous 1 2 3 4 5 6 7 8 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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