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
Gouache painting of a seesaw weighed down by one huge orange pumpkin at one end, with a tiny pumpkin raised at the other

Cost Relative to the Batch: Why One Query Shows 100%

July 23, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Scripts, SQL Server

Cost relative to the batch is a share of estimated cost. See why one query shows 100% and when the percent points at the wrong statement.

Read More
A standard collar fitting remains separate from vessel-specific inspection tools.

SQL SERVER – Legal CASE Defaults and Row Dependent Values

July 21, 2021
Pinal Dave
SQL Tips and Tricks
SQL CASE, SQL Scripts, SQL Server, SQL Table Operation

A CASE Expression can appear in a default, but cannot reference another row column there. My earlier blanket prohibition was incorrect.

Read More
A shared courtyard arch remains distinct from the cabinet room reached by a delivery case.

SQL SERVER – Find Instance Name for Availability Group Listener

July 16, 2021
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Instance, SQL Scripts, SQL Server

An Availability Group Listener identifies a connection endpoint rather than a separate engine instance. I query where this connection actually arrived.

Read More
Gouache painting of two rows of brass keys on hooks, one key with a vermilion handle, and a brass padlock hanging below

Find Queries Using an Index in the SQL Server Plan Cache

July 15, 2021
Pinal Dave
SQL Performance
SQL Cache, SQL DMV, SQL Index, SQL Scripts

Find queries using an index by searching cached plans for its exact name. See the script, a surprise result, and what an unused index costs in SQL Server.

Read More
Gouache painting of a seedling in a glass jar on a windowsill with a vermilion watering can beside it

Query Hints on a View in SQL Server: Where OPTION Goes

July 14, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, Query Hint, SQL Scripts, SQL View

Query hints on a view cannot sit inside the view. Learn where OPTION goes, what a view may contain, and how Query Store hints help.

Read More
An empty tile slot awaits an approved match from separately inspected replacement samples.

SQL SERVER – Altering Column – From NULL to NOT NULL

July 13, 2021
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server

Altering Column nullability to NOT NULL requires resolving existing NULLs under an approved data rule. A customer used empty strings.

Read More
Gouache painting of a row of clay tiles with one cracked tile marked by a vermilion dot and a magnifying glass

Find Damaged Pages in SQL Server With suspect_pages

July 12, 2021
Pinal Dave
SQL Tips and Tricks
Database Corruption, SQL Scripts, SQL Server DBCC, SQL System Table

Find damaged pages in SQL Server by reading msdb.dbo.suspect_pages. Decode the event type, find the table behind each page and know what to do next.

Read More
Previous 1 … 8 9 10 11 12 13 14 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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