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 line of buckets waiting on the rim of a village well, a red bucket first in line.

Reading Pending I/O Requests During a Storage Slowdown

March 16, 2013
Pinal Dave
SQL Performance
Disk, SQL DMV, SQL Performance, SQL Wait Stats

Sample pending I/O requests during PAGEIOLATCH or WRITELOG stalls, map each request to a file, and share timed evidence.

Read More
A candelabra with one red candle burned far lower than the others

Finding Which Database Uses the Most CPU on a Shared Instance

March 15, 2013
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Performance, SQL Server

Find which database uses the most CPU from cached query stats and plan attributes, then use Query Store for restart-safe history.

Read More
An ice cube tray with some cells full, some half full and some empty, a red cube beside it

Why Table Size Numbers Disagree: Reserved, Used and Unused Space

January 19, 2013
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL DMV, SQL Server, SQL Server DBCC

Reconcile table size reports by reading reserved, used, data, index, and unused pages from sys.dm_db_partition_stats on SQL Server.

Read More
Gouache painting: two wooden ladders leaning on one orchard wall, a short one beside a tall one with identical lower rungs, one vermilion rung on the short ladder

Redundant Indexes: Index on Col1, Col2 vs Col1, Col2, Col3

January 4, 2013
Pinal Dave
SQL Performance
Execution Plan, SQL DMV, SQL Index, SQL Scripts

Redundant indexes cost space and slow every write, but not every one can go. This post measures an index on Col1, Col2 next to an index on Col1, Col2, Col3 on SQL Server 2025: size, plan, reads and log bytes. It ends with a safe way to remove one.

Read More
SQL SERVER - Find Referenced or Referencing Object in SQL Server using sys.sql_expression_dependencies

SQL SERVER – Find Referenced or Referencing Object in SQL Server using sys.sql_expression_dependencies

December 2, 2012
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL Utility

Which tables does a procedure use, and which procedures use a table? sys.sql_expression_dependencies answers both, with referenced and referencing objects.

Read More
Gouache painting: a deep stone well with one wooden bucket lowered on its rope, the rope tied off with a vermilion knot, while two empty buckets wait in a line on the well rim behind it

sys.dm_os_waiting_tasks: Who Is Waiting Right Now and Why

November 23, 2012
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Monitoring, SQL Wait Stats

sys.dm_os_waiting_tasks shows every task that waits right now, what it waits for and who is in the way. This post builds a three-session blocking chain on SQL Server 2025, reads the view, finds the head of the chain and names the locked table.

Read More
SQL SERVER - 2012 - List All The Column With Specific Data Types in Database

SQL SERVER – 2012 – List All The Column With Specific Data Types in Database

October 13, 2012
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL System Table

An updated SQL Server 2012 script to list every column with specific data types in a database, including user data types, schema and table names.

Read More
Previous 1 … 27 28 29 30 31 32 33 … 45 Next
  • Books
  • Testimonials
  • Privacy Policy

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