SQL Server Science
Technical Articles for the DBA / Developer
Home » DMV

Reviewing Max Server Memory and Lock Pages in Memory

2026-11-11 · by Hannah Vernon · in configuration

A read-only query to review max server memory, min server memory and Lock Pages in Memory across many SQL Server instances, tested on 2019 and 2025.

THREADPOOL Waits: Reproducing Worker Thread Exhaustion in SQL Server

2026-11-06 · by Hannah Vernon · in troubleshooting

Reproducing THREADPOOL waits on SQL Server 2019: how max worker threads is sized, what new logins see, and finding the blocker through the DAC.

Proving the Restore, Part 4: Finding Backup Files Without xp_cmdshell

2026-08-26 · by Hannah Vernon · in recovery

Everything so far assumed you already knew the path to a backup file. Automating any of it means the code has to find the files itself, and SQL Server gives you no documented way to…

What Reaches Outside Your Database? sys.dm_db_uncontained_entities

2026-07-26 · by Hannah Vernon · in DMVs

Every database likes to pretend it is self-contained. Then you restore it onto another instance and discover the stored procedure that queries a sister database, the synonym pointing at a linked server, the login-mapped user…

Can You Actually Downgrade to Standard Edition? Ask the Database First

2026-07-11 · by Hannah Vernon · in configuration

Since SQL Server 2016 SP1, sys.dm_db_persisted_sku_features over-reports edition features. How to read it before downgrading to Standard.

Performance Counters Over Time: Making sys.dm_os_performance_counters Tell the Truth

2026-06-26 · by Hannah Vernon · in performance

Run this query on any SQL Server and look at the number it gives you for Batch Requests/sec:

Transact-SQL
1
2
3
4
5
6
7
SELECT
      [counter_name]
    , [cntr_value]
FROM
    [sys].[dm_os_performance_counters]
WHERE
    [counter_name] = N'Batch Requests/sec';

On a server that has been up for a few weeks you will get something like…

Search

Categories

  • AI for DBAs
  • announcements
    • events
  • basics
    • localization
  • configuration
  • Data Architecture
  • DMVs
  • documentation
  • extended-events
  • Git for DBAs
  • High Availability
  • Hot Takes
  • Internals
  • maintenance
    • patching
  • Opinion
  • performance
  • PostgreSQL
  • Professional Development
  • recovery
  • reporting
  • ROLLBACK;
  • security
    • data security
  • service broker
  • SQL Server Agent
  • statistics
  • sys
  • t-sql
    • xml
  • tools
    • data masking
    • wsus
  • troubleshooting
  • Uncategorized

Pages

  • About SQL Server Science
  • Blog Series
    • Backup & Recovery from First Principles: Series Contents
    • Database as a Versioned Contract: Series Contents
    • Extended Events in Production: Series Contents
    • Git for DBAs: Series Contents
    • How SQL Server Stores Data: Series Contents
    • Logins, SIDs, and Kerberos from First Principles: Series Contents
    • Proving the Restore: Series Contents
    • T-SQL Style Guide, Tested: Series Contents
    • The UNKNOWN Problem: NULL Traps in T-SQL, Series Contents
    • Undocumented Changes in SQL Server 2022 and 2025: Series Contents
    • Work That Flows: Kanban for DBAs: Series Contents
  • Get Better Help with a Minimal, Complete, and Verifiable Example, or MCVE
  • Privacy Policy

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy

Copyright © 2026 SQL Server Science