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
SQL SERVER - List All the DMV and DMF on Server

SQL SERVER – List All the DMV and DMF on Server

May 15, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server

“How many DMV and DVF are there in SQL Server 2008?” – this question was asked to me in one of the recent SQL Server Training.

Read More
Workshop baskets carry visibly different accumulated stone loads.

SQL SERVER – Finding Expensive Cached Query Statements with DMVs

May 14, 2010
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts, SQL Server

Finding the Most Expensive Queries starts with choosing a resource measure. I use cached statistics as an investigation aid.

Read More
SQL SERVER - Get Latest SQL Query for Sessions - DMV

SQL SERVER – Get Latest SQL Query for Sessions – DMV

May 5, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

Want the latest SQL query for sessions on your server? Join sys.dm_exec_connections with sys.dm_exec_sql_text using most_recent_sql_handle.

Read More
Gouache painting of a balance scale with apples and a small red basket collecting the apples that changed

When Are Statistics Updated? What Triggers an Automatic Update

April 21, 2010
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Statistics

Statistics updated automatically need two things: enough changed rows, and a query that uses the statistic. This post explains the old 500 plus 20 percent rule and the newer square root threshold, then shows a million-row demo where last_updated changes only after a query compiles. It also covers FULLSCAN, asynchronous updates and when to update by hand.

Read More
Max worker threads window.

SQL SERVER – Find Max Worker Count using DMV – 32 Bit and 64 Bit

April 20, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL System Table

Does doubling the CPUs double the worker threads? No. Use sys.dm_os_sys_info to find Max Worker Count, and see the formula for 32 bit and 64 bit.

Read More
A late-night cloakroom still holding a few old coats

Watching the tempdb Version Store

April 13, 2010
Pinal Dave
SQL Tips and Tricks
DBA, SQL DMV, SQL TempDB, Transaction Isolation

Watch the tempdb version store with per-database space DMVs, find transactions that delay cleanup, and plan capacity from trends.

Read More
Msg 297, Level 16, State 1, Line 1.

SQL SERVER – DMV Error: FIX: Error: Msg 297, Level 16 The user does not have permission to perform this action

January 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

Msg 297 appears when a user runs a DMV without the right permission. Ask your admin to GRANT VIEW SERVER STATE, and the DMV runs without errors.

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

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