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 workshop pegboard of tool outlines with one empty outline and a red hammer on the floor

Missing Index Script: Read the Suggestions Before You Create

January 3, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Scripts

This Missing Index Script ranks the indexes SQL Server wishes it had by a plain score and builds a CREATE INDEX statement for each. Read the key order, the INCLUDE list and the overlap before you create one. A garden center orders table shows the logical reads drop from 3,138 pages to 3.

Read More
Two stacks of chocolate boxes, one short and full, one twice as tall with half-empty boxes

Page Density: The Fragmentation Number That Actually Slows Scans

December 9, 2010
Pinal Dave
SQL Performance
SQL Data Storage, SQL DMV, SQL Index, SQL Server

Measure page density and fragmentation, compare scan reads around a test rebuild, and choose fill factor using workload evidence.

Read More
A sunflower tied to a bamboo cane with twine knots marking its height, evenly spaced until one sits far higher.

Recording Table Row Counts Every Day

November 19, 2010
Pinal Dave
SQL Tips and Tricks
DBA, SQL Data Storage, SQL DMV, SQL Server Agent

Recording table row counts each day creates a useful SQL Server trend when a scheduled job, history table, and change review support it.

Read More
An open protected archive case sits before shelves of closed cases ready for inspection.

SQL SERVER – Finding Last Backup Time for All Database

November 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Scripts, SQL Server

Last Backup Time comes from recorded history, which I check by backup type. Recovery still needs the files and a tested chain.

Read More
Gouache painting of a shelf of cloth-bound books with one book tilted out of the row and a vermilion ribbon bookmark hanging below it

Find the Last Read and Write Time of Every Table in SQL Server

October 31, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Index, SQL Scripts, SQL Server

Find the last read and write time of every table in SQL Server with sys.dm_db_index_usage_stats. The tests show what counts as a read, why an insert counts as a write, what an index rebuild does to the numbers, and what wipes them.

Read More
Arrow indicating data flow or navigation.

SQL SERVER – Find Total Number of Transactions on Interval

October 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL System Table

How many Transactions run on your server per minute? A handy script reads sys.dm_os_performance_counters twice with a WAITFOR DELAY between the reads.

Read More
A cable ferry crosses a calm river while a long line of cars waits on the near bank.

Monitoring Availability Group Health

August 9, 2010
Pinal Dave
SQL Tips and Tricks
AlwaysOn, DBA, SQL DMV, SQL High Availability, SQL Monitoring

Monitor availability group health through replica connection state, database synchronization, send and redo queues, and failover readiness checks.

Read More
Previous 1 … 35 36 37 38 39 40 41 … 44 Next
  • Books
  • Testimonials
  • Privacy Policy

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