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 row of wicker baskets on a bench beside a full shelf of oven rolls, one basket holding a vermilion item

Queries Waiting for Memory: Read the Grant Counters

December 10, 2019
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Memory, SQL Scripts

Queries waiting for memory are counted by the Memory Grants Pending counter and listed by sys.dm_exec_query_memory_grants. A tested demo holds a sort grant of 41,848 KB with a blocked query and reads it from the view. The post explains how to spot a waiting request and what causes the wait.

Read More
A settled bookcase and a mobile bookcase suggest different patterns of access and change

How to Determine Read Intensive and Write Intensive Tables in SQL Server? – Interview Question of the Week #251

November 17, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Scripts, SQL Server

Question: How to Determine Read Intensive and Write Intensive Tables in SQL Server?

Answer: The script is very simple and lets us see in the blog.

Read More
Three nearly identical rakes on a shed wall and a fourth new red-handled rake by the door.

Missing Index Suggestions: Three Checks Before You Create One

November 12, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Performance, SQL Server

Review missing index suggestions against existing indexes, key order, and INCLUDE size before adding extra write overhead.

Read More
Gouache painting of a mountain stream blocked by one large vermilion stone with water backing up behind it

Session Wait Stats: Find the Query Behind a Wait Type

October 26, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server, SQL Wait Stats

Session wait stats tell you which session produced a wait type, and the input buffer tells you which query that session ran. This post shows how to see who waits right now, how to read the wait history of each session, and how to join them to the query text. It also explains the THREADPOOL wait.

Read More
Gouache painting of four wooden chests in an attic with their keys in front and one key in vermilion

Memory-Optimized Files: List Logical and Physical Names

October 4, 2019
Pinal Dave
SQL Performance
In-Memory OLTP, SQL DMV, SQL Memory, SQL Scripts

To list memory-optimized files, join sys.dm_db_xtp_checkpoint_files to sys.database_files. This post builds a small memory-optimized database, shows the container’s logical and physical name and counts its checkpoint files by type and state. It also explains why a container holds far more disk space than its data uses.

Read More
A bike rack with one long red chain looped through every slot while a cyclist waits with nowhere to park

Counting Locks per Session With sys.dm_tran_locks

September 13, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Server, SQL Transactions

Count locks per session by resource and mode, connect open transactions, and recognize escalation while keeping snapshot limits clear.

Read More
A leather satchel on a station bench, its strap buckled tight but its brass clasp hanging open

Listing Driver, Encryption and Auth Scheme for Every Connection

September 3, 2019
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL DMV, SQL Server, SQL Server Encryption, SQL Server Security

Inspect the auth scheme, encryption, driver interface, and protocol for current SQL Server connections, then group the results clearly.

Read More
Previous 1 … 9 10 11 12 13 14 15 … 45 Next
  • Books
  • Testimonials
  • Privacy Policy

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