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 large open steamer trunk in an attic holding only a few linens, some matching socks and one long red umbrella.

Profiling a Table’s Data: Nulls, Distinct Values and Lengths

July 2, 2019
Pinal Dave
SQL Tips and Tricks
DBA, SQL Column, SQL Datatype, SQL NULL, SQL Server

Start profiling a table’s data with null counts, distinct values, lengths, and generated checks that expose misleading column definitions.

Read More
A walker taking a short straight garden path to a cottage door beside an elaborate hedge maze

Trivial Plan: Why Some Queries Skip Full Optimization

July 1, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL Performance, SQL Server

Identify a trivial plan in SSMS and cached XML, understand skipped optimizer work, and compare a more complex query without forcing it.

Read More
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
Gouache painting of a wooden seedling tray with rows of small green sprouts and one empty cell holding a single vermilion seed

Transient Error in Automatic Seeding: Availability Database Failed to Seed

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

A transient error stopped automatic seeding of an availability database. The ERRORLOG on the secondary showed Msg 4353 about conflicting file relocations. Renaming a logical file let the database seed.

Read More
Gouache painting of a wheelbarrow of apples stopped at a closed vermilion side gate in an orchard fence

Availability Group Restore Error When You Add a Database

June 28, 2019
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Backup and Restore, SQL Error Messages, SQL High Availability, SQL Server Management Studio

The availability group restore error appears when automatic seeding and a manual restore both fill the same secondary. The post explains the cause, shows read-only checks for the seeding mode and the replica roles, and gives the fix with its undo.

Read More
Gouache painting of two matching picnic baskets, one full and one nearly empty in vermilion

COPY_ONLY Full Backup Size: What Differs Between Always On Replicas

June 27, 2019
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Backup and Restore, SQL High Availability, SQL Scripts

A COPY_ONLY full backup of the same database can have a different size on the primary and the secondary replica of an Always On group. This post reads the log pages in the backup messages, shows them on a standalone database and explains how to compare backups fairly. It also covers what a restore needs.

Read More
Gouache painting of a line of boxcars waiting on one track before a vermilion switch lever

PAGELATCH_UP Waits and Suspended Sessions: Find the Hot Page

June 26, 2019
Pinal Dave
SQL Performance
SQL Data Storage, SQL Memory, SQL TempDB, SQL Wait Stats

PAGELATCH_UP waits mean that sessions queue for the same page in memory, and that page can be named. This post reads the waiting sessions, turns the resource into a database, a file and a page, and tells an allocation page from an ordinary one. It then lists the fixes for tempdb and for a user database.

Read More
Gouache painting of a swept doormat with a pile of old brass keys aside and one vermilion key in the middle

DBCC FLUSHAUTHCACHE: Force Azure SQL to Re-authenticate

June 25, 2019
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Login, SQL Scripts, SQL Server Security

DBCC FLUSHAUTHCACHE clears the authentication cache of an Azure SQL database, so open connections must authenticate again. This post shows what a password change does to open sessions on SQL Server, why Azure SQL needs the extra command and how to list the sessions you want to end. It also covers the cautions that matter.

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
Completed ceramic tiles are filed in a cabinet beside a tray awaiting storage

What are the Different Types of SQL Server CHECKPOINT? – Interview Question of the Week #230

June 23, 2019
Pinal Dave
SQL Interview Questions and Answers

Question: What are the Different Types of SQL Server CHECKPOINT?

Answer: There are four different kinds of checkpoints in SQL Server.

Read More
Previous 1 … 109 110 111 112 113 114 115 … 591 Next
  • Books
  • Testimonials
  • Privacy Policy

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