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 crowd of spinning wind-up toys on a shelf with one vermilion top

Background Job Queue: List Active Jobs and Kill a Stats Job

July 15, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Statistics, System Object

The background job queue holds work that SQL Server runs outside your queries, such as asynchronous statistics updates. This post lists the active jobs, reads the queue counters, catches a real statistics job in a demo and kills it with KILL STATS JOB. It also corrects a common mix-up: the command takes the job ID, not the session ID.

Read More
Gouache painting of a tall glass jar of rising dough with a vermilion rubber band marking where it started

Query Percentage Complete: Watch a Long Query Finish

July 13, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts

Query percentage complete is not a column in any view, but sys.dm_exec_query_profiles reports how many rows each operator has produced against the plan’s estimate. This post builds a monitor query for a running statement, explains why a percentage can pass 100 or even run into the thousands, and shows which operators to trust.

Read More
A hand clipping a peg at the water level of a rain tank's sight tube, older pegs stepping down above

Logging Free Space per Volume Into a Table Each Day

July 9, 2020
Pinal Dave
SQL Tips and Tricks
DBA, Disk, SQL Data Storage, SQL DMV, SQL Monitoring

Log free space per volume from SQL Server volume metadata, keep one daily sample per mount point, and compare change with LAG.

Read More
Gouache painting of a vermilion rowboat, a flat barge and a white sailboat at a calm mooring

Connections by Protocol: Shared Memory, TCP and Named Pipes

June 23, 2020
Pinal Dave
SQL Tips and Tricks
Computer Network, SQL Connection, SQL DMV, SQL Scripts

Connections by protocol tell you whether a client reaches SQL Server through shared memory, TCP or a named pipe, and from which address. This post reads the connection view for your own session, connects three ways to see each protocol, lists every connection with its host and program, and counts them by protocol.

Read More
Gouache painting of a squirrel on a mossy stump holding a vermilion acorn, with an empty basket nearby

Give Memory Back to the OS? Why SQL Server Doesn’t

June 9, 2020
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL DMV, SQL Memory, SQL Scripts

This is a guest post by Brian Gale. It explains why SQL Server doesn’t give memory back to the OS, what the buffer pool keeps in that memory, and why max server memory needs a realistic value. Two queries show what is held right now.

Read More
Several pairs of muddy boots show visitors arriving at the same doorway

How to Find IP Address of All SQL Server Connection? – Interview Question of the Week #280

June 7, 2020
Pinal Dave
SQL Tips and Tricks
Computer Network, SQL DMV, SQL Scripts, SQL Server

Question: How to Find the IP Address of All SQL Server Connection?

I had recently received this question during a recent consultation.

Read More
Gouache painting of a long loaf cut into slices in a row, one slice topped with vermilion jam

Partition Function Fanout: Count Partitions in SQL Server

June 3, 2020
Pinal Dave
SQL Performance
SQL DMV, SQL Function, SQL Scripts, Table Partitioning

Count partitions in SQL Server by reading the fanout of a partition function. This post reads fanout and modify_date from sys.partition_functions, watches SPLIT RANGE and MERGE RANGE change them, and finds functions that no table uses.

Read More
Previous 1 … 5 6 7 8 9 10 11 … 44 Next
  • Books
  • Testimonials
  • Privacy Policy

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