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
Title card: Always On Listener Creation Failed With Error 5

SQL SERVER – Always On Listener Creation Failure – Enabling Object ProdListener Failed With Error 5

February 8, 2020
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Error Messages, SQL Server, SQL Server Cluster, Windows

I have written a few blogs where I explained a few issues about the failure of listener creation failure in a cluster. Let us learn about it.

Read More
Gouache painting of a basket of red apples under an apple tree in an orchard row

DISABLE_OPTIMIZER_ROWGOAL: How a Row Goal Changes the Plan

February 7, 2020
Pinal Dave
SQL Performance
Execution Plan, Query Hint, SQL Scripts, SQL Server

DISABLE_OPTIMIZER_ROWGOAL switches off a row goal, the optimizer’s bet that a query needs only a few rows, and TOP, FAST, IN and EXISTS all place that bet. This post reads the estimates behind it, shows how the plan shape changes, and shows when the bet fails. A covering index fixes the failure, and the hint does not.

Read More
A lacrosse stick transferring a ball from an unused basket toward an active basket

Counting Ranked-Choice Votes With a Loop and a Table

February 6, 2020
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Four people rank three topics and nobody has a majority. Here is a small loop that eliminates the weakest topic, moves its ballots and logs every round.

Read More
Gouache painting of a cello, a violin and a harp with a small music stand and a single vermilion tuning fork between them

Dynamics SQL Server Settings: Five Checks for NAV, AX and CRM

February 5, 2020
Pinal Dave
SQL Performance
MAXDOP, SQL Index, SQL Scripts, SQL Statistics, SQL TempDB

Dynamics SQL Server settings decide most of the speed you get from NAV, AX and CRM, because you rarely control the application code. Five read-only checks cover tempdb, autogrowth, MAXDOP, automatic statistics and statistics age. Each one comes with a short query and a clear rule.

Read More
Gouache painting of a garden bed with many small seedlings and a wicker basket holding pulled ones

DROP STATISTICS Script: Remove Auto-Created Statistics

February 4, 2020
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Statistics, SQL System Table

A DROP STATISTICS script can remove every auto-created statistic in a database, and SQL Server builds the useful ones again on demand. This post previews the statements, runs them behind a switch and shows what happens to the next query. It also says when the cleanup helps.

Read More
A library trolley carrying a small stack of old books toward a basement stairway, a gap left on the shelf.

Archiving Old Rows to a History Table in Small Batches

February 3, 2020
Pinal Dave
SQL Tips and Tricks
Batch, Output Clause, SQL Delete, SQL Server, SQL Transactions

Make archiving old rows atomic with DELETE OUTPUT, preserved source identifiers, bounded batches, reconciliation, and a job time limit.

Read More
Corks pass a waterwheel in a steady stream, illustrating throughput

How to Measure Transactions Per Seconds in SQL Server? – Interview Question of the Week #262

February 2, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Performance, SQL Scripts, SQL Server, SQL Transactions, Windows

Question: How to Measure Transactions Per Seconds in SQL Server?
I have updated the script for this for Comprehensive Database Performance Health Check.

Read More
Previous 1 … 124 125 126 127 128 129 130 … 843 Next
  • Books
  • Testimonials
  • Privacy Policy

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