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
A wide stone culvert with a trickle of water and a high line of dried debris from spring floods

Right-Sizing SQL Server: Reading CPU and Memory Use Before Consolidation

September 6, 2018
Pinal Dave
SQL Performance
DBA, SQL CPU, SQL DMV, SQL Memory, SQL Monitoring

Base right-sizing SQL Server on sampled CPU, memory pressure, buffer use and interval I/O, then compare peaks across a full business cycle.

Read More
Gouache painting of a giant vermilion pumpkin squeezed onto a small pantry shelf among little jars

Huge Transaction Log File in SQL Server: Find the Cause

August 17, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Scripts, Transaction Log

A huge transaction log file has a named reason in log_reuse_wait_desc. This post builds a small demo database, reads that reason, backs up the log and finds the open transaction that holds it. It ends with a one time shrink and a safe growth step.

Read More
Small red ribbons tied to pine trunks marking a path through a wood to a single picnic table in a clearing.

Decoding wait_resource: From a KEY or PAGE Lock to the Table

August 14, 2018
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Server, SQL Wait Stats

Decode wait_resource for blocked requests, map KEY and PAGE locks to objects, and keep undocumented row-hash checks on test copies.

Read More
A herd of cattle with distinct bells and a single contrasting red bell

How to Identify Process ID for SQL Server Services? – Interview Question of the Week #185

August 5, 2018
Pinal Dave
SQL Interview Questions and Answers
Computer Network, SQL DMV, SQL Scripts, SQL Server, SQL Server Services

How do you find the Process ID for SQL Server services? One quick query on sys.dm_server_services returns the process id, status, last startup time and account.

Read More
Loom stations have different amounts of waiting work in their baskets

How Much Work Each Processor (CPU) is Doing in SQL Server? – Interview Question of the Week #178

June 17, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL CPU, SQL DMV, SQL Scripts, SQL Server

A client with 56 processors saw CPU always high and wanted to know how busy each one was. Here is a simple DMV query that shows work per Processor (CPU).

Read More
Gouache painting of a wooden loom with many pale threads and one vermilion thread through the middle

Optimal Value for Max Worker Threads in SQL Server

June 15, 2018
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Server

The optimal value for Max Worker Threads is the default, 0, which tells SQL Server to calculate the limit from the number of logical processors. This post shows how to read the real limit, how the formula works, and which wait and queue counters prove a thread shortage before you change anything.

Read More
Gouache painting of five glasses of water at different levels with the fullest one rimmed in vermilion

Find Memory Used by Each Database in SQL Server

June 9, 2018
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Memory, SQL Scripts, SQL Server

To see the memory used by each database, count its pages in the buffer pool with sys.dm_os_buffer_descriptors. This post builds a small demo database, shows buffer and dirty page sizes before and after a checkpoint, explains the row with no name, and covers what the buffer pool numbers leave out, such as the plan cache.

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

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