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 viewing window onto a bakery, a red stool in front, the door beside it closed

Granting VIEW SERVER STATE Without Handing Out sysadmin

January 8, 2009
Pinal Dave
SQL Tips and Tricks
DBA, SQL DMV, SQL Login, SQL Server Security

Grant VIEW SERVER STATE or SQL Server 2022 performance permissions to a monitoring login, add job history access, and test its limits.

Read More
A hand holding a stethoscope to the flank of a calm chestnut horse in a stable, a closed leather bag nearby

Five DMVs Worth Memorizing

December 19, 2008
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Performance, SQL Server, SQL Wait Stats

Five DMVs worth memorizing show SQL Server sessions, active requests, waits, index use, and file I/O during an incident.

Read More
Two glass jars on a garden wall, one empty, one filled with water under a red lid

Comparing Two Wait Stats Snapshots to See What Changed

December 8, 2008
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Performance, SQL Wait Stats

Compare wait stats snapshots over a chosen window, subtract cumulative counters, remove background waits, and calculate rates and average waits.

Read More
Two identical brass compasses on a workbench, one needle pulled aside by a nearby iron vise

Why One Query Has Two Cached Plans: SET Options and plan_attributes

November 8, 2008
Pinal Dave
SQL Performance
Execution Plan, Parameter Sniffing, SQL Cache, SQL DMV, SQL Server

Investigate two cached plans with plan_attributes, decode differing SET options, and match application settings before diagnosing skew.

Read More
A busy restaurant stove with every burner lit and one pot boiling over as a hand reaches for its lid.

Seeing What Is Running Right Now

October 24, 2008
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Lock, SQL Performance, SQL Wait Stats

See what is running right now in SQL Server with request DMVs, statement text, plans, waits, and blocking details in one reusable query.

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 hand tracing one red patch cord back to its jack on an old telephone switchboard

Finding the Client IP Address of a Connection

August 20, 2008
Pinal Dave
SQL Tips and Tricks
Computer Network, DBA, SQL Connection, SQL DMV, SQL Server Security

Find the client IP address of a SQL Server connection with DMVs and CONNECTIONPROPERTY, and understand proxy and local transport limits.

Read More
Previous 1 … 39 40 41 42 43 44 Next
  • Books
  • Testimonials
  • Privacy Policy

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