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 workshop shows a full old tally tray beside a cleared new tray, with ceramic counters preserved in linen.

Index Usage Snapshots: Reject Invalid Counter Deltas

January 16, 2009
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Monitoring

Index usage snapshots require a valid counter window. Keep missing rows and lifecycle gaps visible. The guarded example rejects invalid pairs before calculating any activity delta.

Read More
Set ROWCOUNT Option in SQL Server Management Studio.

SQL SERVER – Find Row Count in Table – Find Largest Table in Database – T-SQL

January 13, 2009
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL System Table, SQL Utility

A quick script using sys.dm_db_partition_stats that lists the row count of every table and shows the largest table in database right at the top.

Read More
A hand checking every coat on a row of hooks for the one with a red lining

Leading Wildcard LIKE Searches: Why They Scan and What Helps

December 25, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Server, SQL String

Diagnose a leading wildcard LIKE scan and compare prefix search, reversed suffix keys, full-text search, and n-gram indexing.

Read More
Execution Plan Tool Window.

SQL SERVER – Interesting Observation – Use of Index and Execution Plan

November 30, 2008
Pinal Dave
SQL Performance
Best Practices, SQL Index, SQL Scripts

Three AdventureWorks examples show how the Query Optimizer picks an index, what happens when you force one, and how that changes the index and execution plan.

Read More
A painting shows a walnut cabinet with nested storage trays and three unlettered wooden keys.

Closure Table: Read and Validate Hierarchy Paths

October 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Index, SQL Joins

A closure table stores ancestor and descendant paths. Read those relationships efficiently and compare them with the authoritative parent edges.

Read More
SQL Server execution plan.

SQL SERVER – 2008 – Find If Index is Being Used in Database

October 3, 2008
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Scripts

How do you find if an index is being used in your database? My quick script checks sys.dm_db_index_usage_stats, so you can drop unused indexes safely.

Read More
A ring of brass keys on a hook in a corridor of wooden doors, one door ajar with light spilling out

Exploring the System Catalog With Queries

October 2, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Index, SQL Server, SQL System Table

Exploring the system catalog with queries reveals SQL Server objects, columns, indexes, and dependencies without relying on stale diagrams.

Read More
Previous 1 … 51 52 53 54 55 56 57 … 64 Next
  • Books
  • Testimonials
  • Privacy Policy

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