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 Query Optimizer Statistics.

SQL SERVER – DMV – sys.dm_exec_query_optimizer_info – Statistics of Optimizer

January 7, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts

The DMV sys.dm_exec_query_optimizer_info keeps statistics of optimizer activity. My simple query shows optimizations, elapsed time, final cost and more.

Read More
Finding last backup time for all database.

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

A quick script I use to find the Last Backup Time for all the databases on my server, joining sys.sysdatabases with msdb.dbo.backupset.

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
SQL SERVER - Find Queries using Parallelism from Cached Plan

SQL SERVER – Find Queries using Parallelism from Cached Plan

July 24, 2010
Pinal Dave
SQL Performance
Best Practices, SQL DMV, SQL Scripts, SQL Server

A script by Feodor Georgiev that finds queries using parallelism from the cached plan, along with their plans. Please avoid running it on a busy production server.

Read More
Clustered Index B-Tree

SQL SERVER – Index Levels, Page Count, Record Count and DMV – sys.dm_db_index_physical_stats

July 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Index, SQL Scripts

How many pages does an index use, and how many B-Tree levels does it have? sys.dm_db_index_physical_stats shows index levels, page count and record count.

Read More
Table showing clustered index entries.

SQL SERVER – Data Pages in Buffer Pool – Data Stored in Memory Cache

June 17, 2010
Pinal Dave
SQL Performance
SQL DMV, SQL Scripts

What is in your memory cache? A query on sys.dm_os_buffer_descriptors shows the data pages in buffer pool for each table and index.

Read More
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
Previous 1 … 19 20 21 22 23 24 Next
  • Books
  • Testimonials
  • Privacy Policy

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