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
Two bowls hold equal groups of qualifying red beads while green beads remain outside

What is Faster, SUM or COUNT? – Interview Question of the Week #231

June 30, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Performance, SQL Scripts, SQL Server

Question: What is Faster, SUM or COUNT? Answer: Both are the same. I was asked this question during my Comprehensive Database Performance Health Check.

Read More
Title card: Automatic Seeding Failed With a Transient Error

SQL SERVER – Automatic Seeding of Availability Database ‘SQLAGDB’ in Availability Group ‘AG’ Failed With a Transient Error. The Operation Will be Retried

June 29, 2019
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL High Availability, SQL Scripts, SQL Server

Earlier I have written few blogs about automatic seeding feature. In this blog we would learn how to fix error: Automatic seeding of availability database.

Read More
A string of glowing garden lights with one dark bulb, a replacement waiting on a stepladder.

Removing a Bad Plan From Cache Without Clearing Everything

June 24, 2019
Pinal Dave
SQL Performance
Execution Plan, Parameter Sniffing, SQL Cache, SQL Performance, SQL Server

Remove one bad plan from cache by handle, compare narrower recompilation choices, and fix the cause so the plan stays healthy.

Read More
Gouache painting of a row of wooden trays of sawdust on a workbench with the overflowing one in vermilion

TempDB Performance: Five Settings to Check in SQL Server

June 19, 2019
Pinal Dave
SQL Performance
Best Practices, SQL Data Storage, SQL Scripts, SQL Server, SQL TempDB

TempDB performance depends on five settings that you can read in a few minutes: how big it is, how many data files it has, whether they match, how it grows and where it lives. Three read-only queries check each one. The post also explains what to do with the answers.

Read More
Gouache painting of a vermilion cart rolling crates up a wide ramp onto a boat while a narrow plank stands unused

CHECKPOINT Duration: Can You Speed Up a Manual CHECKPOINT?

June 18, 2019
Pinal Dave
SQL Performance
Best Practices, SQL Memory, SQL Scripts, SQL Server

The CHECKPOINT duration argument sets a target time in seconds. This post times a manual checkpoint on a database with 130 MB of dirty pages, and shows that a long duration slows it badly while a short one does not make it faster. It also shows that a backup flushes dirty pages by itself.

Read More
checkpoint

SQL SERVER – Impact of CHECKPOINT and DBCC DROPCLEANBUFFERS on Memory

June 17, 2019
Pinal Dave
SQL Tips and Tricks
SQL Memory, SQL Scripts, SQL Server

Today we will discuss the Impact of CHECKPOINT and DBCC DROPCLEANBUFFERS on Memory. We will see how each of them clears dirty and clean pages from the buffer memory pool.

Read More
Gouache painting of a stack of clean folded towels beside a vermilion basket of crumpled muddy ones

Dirty Pages and Clean Pages in the SQL Server Buffer Pool

June 14, 2019
Pinal Dave
SQL Performance
SQL DMV, SQL Memory, SQL Scripts, SQL Server

Dirty pages are pages in memory that SQL Server has changed but not yet written to the data file. This post counts dirty pages and clean pages per database and per object, then watches a CHECKPOINT bring the dirty count to zero. It also explains why you should not try to clean the buffer pool on a production server.

Read More
Previous 1 … 76 77 78 79 80 81 82 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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