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 xylophone with grey bars on the left and vermilion bars on the right, with a mallet beside it

max_column_id_used: How Many Columns a Table Once Had

July 29, 2021
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL DMV, SQL Scripts, SQL Table Operation

The max_column_id_used column shows how many columns a table ever had. See it grow, find tables that lost columns, and avoid treating column_id as a position.

Read More
Specific Index

Queries Using Specific Index – SQL in Sixty Seconds #180

July 20, 2021
Pinal Dave
SQL Video
SQL DMV, SQL in Sixty Seconds, SQL Index, SQL Server

The challenge I face is that often DBAs ask me to prove that indexes are really not used by queries. Let us learn about Queries Using Specific Index.

Read More
Gouache painting of two rows of brass keys on hooks, one key with a vermilion handle, and a brass padlock hanging below

Find Queries Using an Index in the SQL Server Plan Cache

July 15, 2021
Pinal Dave
SQL Performance
SQL Cache, SQL DMV, SQL Index, SQL Scripts

Find queries using an index by searching cached plans for its exact name. See the script, a surprise result, and what an unused index costs in SQL Server.

Read More
A row of iron cleats on a dock, all lines slack except one taut red line.

Latch Waits at the Top: Reading sys.dm_os_latch_stats

June 28, 2021
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Performance, SQL Wait Stats

Sample SQL Server latch waits by class, then connect ACCESS_METHODS_DATASET_PARENT, FGCB_ADD_REMOVE, and LOG_MANAGER to the next check.

Read More
Illustrated cover: 3 Memory Checks

SQL SERVER – 3 Queries to Detect Memory Issues

May 18, 2021
Pinal Dave
SQL Performance
SQL DMV, SQL Memory, SQL Scripts, SQL Server

One of the most popular conversations during Comprehensive Database Performance Health Check is about CPU and memory issues.

Read More
Gouache painting of a wooden loom with a cream weaving and a vermilion shuttle trailing red thread

OS Threads by Scheduler in SQL Server: Count Them per CPU

May 7, 2021
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Server

OS threads by scheduler shows how many Windows threads each SQL Server scheduler owns. This post joins the scheduler, worker and thread views and counts them per CPU. It compares the counts with the server totals and explains the hidden schedulers that a careless query counts as CPUs.

Read More
A water wheel turning beside a mill while its sluice gate upstream is propped open by one loose wedge

Checking SQL Server Service Startup Type and Status From T-SQL

May 5, 2021
Pinal Dave
SQL Tips and Tricks
DBA, Registry, SQL DMV, SQL Server Agent, SQL Server Services

Inspect service startup type, current status, service account, and SQL TCP registry values, then compare configuration with live listeners.

Read More
Previous 1 2 3 4 5 6 7 … 44 Next
  • Books
  • Testimonials
  • Privacy Policy

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