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 cork borer and extracted core beside intact and fully opened cork stoppers

SAMPLED vs DETAILED: Running index_physical_stats Safely

November 26, 2012
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Server

A misspelled table name quietly turns into a scan of everything. Here is the guard, and a fair comparison of the three scan modes on one small index.

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 - Concurrency Basics - Guest Post by Vinod Kumar

SQL SERVER – Concurrency Basics – Guest Post by Vinod Kumar

November 15, 2012
Pinal Dave
SQL Performance

Vinod Kumar explains concurrency basics with a simple queue analogy: the shorter the line, the higher the concurrency, and how databases manage it with locks.

Read More
Gouache painting of three neat crates of pears beside a loose heap of peaches on a red cloth

Count Rows and Indexes for Every Table in SQL Server

October 10, 2012
Pinal Dave
SQL Performance
Clustered Index, SQL Heap, SQL Index, SQL Scripts

To count rows and indexes for every table, one query on the catalog views answers four questions at once: how many tables, which are heaps, how many nonclustered indexes each has, and how many rows each holds. The post tests it on a demo database and explains where the row count comes from.

Read More
A gardener lifting white frost covers one by one along a vegetable row on a frosty morning.

SARGable Date Filters: Stop Wrapping Columns in Functions

October 5, 2012
Pinal Dave
SQL Performance
SQL DateTime, SQL Function, SQL Index, SQL Performance, SQL Server

Write SARGable date filters as half-open ranges for years, months, days, and rolling windows, then compare plans and logical reads.

Read More
Gouache painting of a row of small potted plants and one giant thirsty plant in a red pot beside an empty watering can

Find the Most Resource Intensive Queries in SQL Server

October 3, 2012
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Monitoring, SQL Scripts

To find resource intensive queries, read sys.dm_exec_query_stats and rank the cached statements by reads, CPU or time. This post builds a small demo, ranks it two ways, and fixes the worst offender with one index. It also explains what the numbers can and cannot tell you.

Read More
SQL SERVER - SQL Server Statistics Name and Index Creation

SQL SERVER – SQL Server Statistics Name and Index Creation

September 17, 2012
Pinal Dave
SQL Performance
SQL Error Messages, SQL Index, SQL Scripts, SQL Server, SQL Statistics

Guest author Sandip hit Msg 1913 while creating an index, because an index or statistics with that name already existed. A lesson on statistics name and index creation.

Read More
Previous 1 … 71 72 73 74 75 76 77 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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