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 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 large orange pumpkin beside a barn door with smaller pumpkins nearby

Metadata Contention in TempDB: When Memory-Optimized Metadata Helps

May 14, 2020
Pinal Dave
SQL Performance
In-Memory OLTP, SQL Memory, SQL TempDB, SQL Wait Stats

Metadata contention in TempDB happens when many sessions create and drop temporary tables at the same moment. This post reads the waits that point to it, explains why RESOURCE_SEMAPHORE is a different problem, and shows how SQL Server 2019 and later can keep that metadata in memory.

Read More
One bowl of tiles supplies two distinct mosaic arrangements

What is the Difference Between sql_handle and plan_handle?- Interview Question of the Week #269

March 22, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL DMV, SQL Memory, SQL Scripts, SQL Server

Question: What is the Difference Between sql_handle and plan_handle?
Answer: I was recently asked this question. Let us see the answer today.

Read More
Gouache painting of a slow mill wheel at a stream with a stick, a stone and leaves blocking it, one leaf vermilion

Reasons for Slow Performance in SQL Server: The Top Five

February 10, 2020
Pinal Dave
SQL Performance
SQL CPU, SQL Function, SQL Index, SQL Memory, SQL Server Configuration

The reasons for slow performance in SQL Server fall into five groups: schema design, T-SQL code, indexing, server deployment and hardware. This post tests three of them on a demo database, with logical reads as proof. It also shows a query that checks four deployment settings.

Read More
Sorted paper fills a worktable while excess slips rest in a side basin

What is TempDB Spill in SQL Server? – Interview Question of the Week #259

January 12, 2020
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, SQL Memory, SQL Scripts, SQL Server, SQL TempDB

When SQL Server uses TempDB when any query does not have enough memory to do its operation, it is called TempDB Spill. Let’s learn today.

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

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