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
rowssampled

SQL SERVER – Rows Sampled – sys.dm_db_stats_properties

June 2, 2020
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL Server DBCC, SQL Statistics

Here is the question asked in my yesterday’s Comprehensive Database Performance Health Check about rows sampled from sys.dm_db_stats_properties.

Read More
Separate pattern guides retain individual thread bundles for inspection rather than one combined change total.

SQL SERVER – Statistics Modification Counter – sys.dm_db_stats_properties

June 1, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Server DBCC, SQL Statistics

The Statistics Modification Counter tracks changes relevant to each statistics object. I inspect it alongside the affected query and estimates.

Read More
A hand with sugar tongs dropping a sugar cube into each of a long row of teacups, the sugar bowl nearly empty.

Scalar Function Statistics With sys.dm_exec_function_stats

May 30, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Function, SQL Performance, SQL Server

Read dm_exec_function_stats to rank scalar UDF activity, inspect callers, verify collection settings, and recognize inlined work.

Read More
Gouache painting of a tower of nested clay flower pots on a potting bench with a vermilion pot on top

Memory Used by Each Table in the SQL Server Buffer Pool

May 28, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Memory, SQL Scripts, SQL Server

Memory used by each table is the number of its pages in the buffer pool times 8 KB. This post adds them up with sys.dm_os_buffer_descriptors, shows why a plain division by 128 hides small tables, and compares the cached pages with the pages each table owns on disk.

Read More
Gouache painting of wooden crates of pears stacked at a fruit stand, with one red pear among them

Buffer Pool Pages for One Table in SQL Server

May 27, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Memory, SQL Scripts, SQL Server

Buffer pool pages for one table show how much of one table sits in memory right now. This post lists them by index, page type and page level with sys.dm_os_buffer_descriptors, then shows which pages a seek, a scan and a large text read pull in. It uses the join that the documentation gives for each allocation unit type.

Read More
Gouache painting of a shelf of cream pots with plants and one differently shaped vermilion pot

Memory-Optimized TempDB Tables: List Them and Check Status

May 15, 2020
Pinal Dave
SQL Performance
In-Memory OLTP, SQL DMV, SQL Memory, SQL TempDB

Memory-optimized TempDB tables are the system tables that SQL Server 2019 and later can keep in memory. This post shows two queries: one that checks whether the feature is on, and one that lists the tables it covers. It also explains the limits that come with the feature.

Read More
Gouache painting of a row of open beach umbrellas with one closed vermilion umbrella at the end

Visible Offline Schedulers: Find CPUs SQL Server Ignores

May 12, 2020
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Monitoring, SQL Server Configuration

Visible offline schedulers are CPUs that Windows shows and SQL Server refuses to use. This post reads the scheduler status with tested queries, compares it with the CPU count and affinity, and explains the two common causes. It also shows the statement that returns the CPUs to automatic affinity.

Read More
Previous 1 … 6 7 8 9 10 11 12 … 44 Next
  • Books
  • Testimonials
  • Privacy Policy

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