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 hand setting one red slider on a mixing desk

SQL Server on Virtual Machines: Settings That Matter

October 22, 2008
Pinal Dave
SQL Tips and Tricks
SQL CPU, SQL Memory, SQL Server, SQL Server Configuration, Virtualization

SQL Server on virtual machines needs deliberate CPU, memory, NUMA, and storage settings; learn what to inspect before blaming a slow query.

Read More
A gardener seen from behind adjusting a greenhouse roof vent, with a shade cloth, heater and healthy seedlings.

Windows Settings That Affect SQL Server

May 28, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Memory, SQL Server Configuration, Windows

Windows settings can influence SQL Server CPU speed, file growth, memory stability, and security scanning; learn what to inspect and validate.

Read More
An open kitchen drawer with wooden compartments, one overflowing with tangled string while others hold cutlery.

Reading Memory Clerks to See Where Memory Goes

February 9, 2008
Pinal Dave
SQL Performance
SQL Cache, SQL DMV, SQL Memory, SQL Server

Memory clerks show how SQL Server allocates memory among engine components; learn to read the DMV, spot unusual growth, and investigate safely.

Read More
A long coach filling six parking bays while small cars wait at the entrance

Memory Grants: Why a Query Waits for Memory

June 24, 2007
Pinal Dave
SQL Performance
Execution Plan, SQL Memory, SQL Performance, SQL Wait Stats

Memory grants can leave SQL Server queries waiting on RESOURCE_SEMAPHORE; inspect estimates, grants, and spills before adding memory.

Read More
A lamp lighting an armchair with three books at hand, inside a dim room of tall bookshelves.

Estimating How Much Memory SQL Server Needs

May 10, 2007
Pinal Dave
SQL Performance
SQL Memory, SQL Performance, SQL Server, SQL Server Configuration

How much memory SQL Server needs depends on the active working set, grants, and host headroom; learn to measure pressure and avoid fixed ratios.

Read More
A rich gouache cabinet separates ceramic pieces, carved molds and brass connectors in three independent drawers.

SQL SERVER – What DBCC Memory Cache Commands Actually Clear

May 3, 2007
Pinal Dave
SQL Tips and Tricks
SQL Memory, SQL Scripts, SQL Server, SQL Server DBCC, SQL Stored Procedure

SQL Server retains memory caches to support later work. I investigate memory pressure before trying to release them.

Read More
Previous 1 … 16 17 18 19 20 Next
  • Books
  • Testimonials
  • Privacy Policy

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