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 a glass jar full of cream, slate blue and sage marbles on a wooden table, with a small wooden scoop and one loose marble in front

APPROX_COUNT_DISTINCT in SQL Server: Saves Memory, Not Time

May 29, 2009
Pinal Dave
SQL Performance
SQL Function, SQL Memory, SQL Performance, SQL Scripts

APPROX_COUNT_DISTINCT counts distinct values with almost no memory. Tested on 5 million rows, it was within 2.2 percent of the exact count and needed no memory grant, while COUNT(DISTINCT) asked for 436 MB. It was not faster.

Read More
A small rowing skiff and a wide log raft moored side by side at a river jetty, a ferryman watching the bend.

Adaptive Joins: When the Plan Picks Its Join at Run Time

May 5, 2009
Pinal Dave
SQL Performance
Execution Plan, Query Hint, SQL Joins, SQL Performance, SQL Server

Understand adaptive joins in SQL Server, read their runtime threshold, inspect the actual choice, and test a query hint safely.

Read More
A hardware bench contrasts screws stored apart from hinges with a divided tray holding both together.

user_lookups: Verify the Plan Before Adding Coverage

March 25, 2009
Pinal Dave
SQL Performance
Clustered Index, SQL DMV, SQL Index, SQL Performance

user_lookups helps identify where to investigate missing coverage. Compare complete query results and actual plans before adding included columns. Weigh the read benefit against storage and write costs.

Read More
Tiny earrings fit a small travel pouch while a bulky necklace rests in a larger case.

Storing Images in SQL Server: varbinary(max) or FILESTREAM

March 6, 2009
Pinal Dave
SQL Tips and Tricks
Filestream, SQL Data Storage, SQL Datatype, SQL Performance

Pictures in a database are easy to insert and easy to regret. Here is where the bytes go and how to choose a storage method.

Read More
A big beach ball on sound boards beside a small red cannonball that has cracked the plank

Operator Cost Percentages Are Estimates: Read Actual Time Instead

January 26, 2009
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server

Read operator cost percentages as estimates, then use actual rows, elapsed time, IO, and repeated work to find the real bottleneck.

Read More
A hand checking every coat on a row of hooks for the one with a red lining

Leading Wildcard LIKE Searches: Why They Scan and What Helps

December 25, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Server, SQL String

Diagnose a leading wildcard LIKE scan and compare prefix search, reversed suffix keys, full-text search, and n-gram indexing.

Read More
A hand holding a stethoscope to the flank of a calm chestnut horse in a stable, a closed leather bag nearby

Five DMVs Worth Memorizing

December 19, 2008
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Performance, SQL Server, SQL Wait Stats

Five DMVs worth memorizing show SQL Server sessions, active requests, waits, index use, and file I/O during an incident.

Read More
Previous 1 … 48 49 50 51 52 53 54 Next
  • Books
  • Testimonials
  • Privacy Policy

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