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 bowl of cake batter, a big scoop of flour and a small spoon of cocoa going in, the mix turning only faintly brown.

Weighted Averages in T-SQL

March 28, 2020
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL Scripts, SQL Server

Calculate weighted averages with matching numerator and denominator populations, decimal arithmetic, NULL rules, and calendar windows.

Read More
Gouache painting of a blank cream harbor chart pinned to a wooden board with no marked channels and one vermilion pin

Setup Error 0x86D80018: No More Endpoints Available From the Endpoint Mapper

March 27, 2020
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Cluster, SQL Setup, SQL Upgrade

Setup error 0x86D80018 stopped a SQL Server 2016 to 2017 cluster upgrade when the client patched the second node. The Next Step in the setup summary named an uninstall command. Running it, then rebooting both nodes, let setup finish.

Read More
A wooden cable drum on a quay paying out rope, a red chalk mark on the rope showing how far it has moved.

Batch Requests and Compilations per Second From T-SQL

March 26, 2020
Pinal Dave
SQL Performance
Recompile, SQL Cache, SQL Counter, SQL DMV, SQL Server

Calculate compilations per second from cumulative SQL Server counters, compare batch rates, and investigate single-use plans with context.

Read More
Gouache painting of an open, empty stainless steel tiffin carrier with its lid resting beside it, the lid handle painted vermilion

Msg 3254: The Volume on Device Is Empty During RESTORE

March 25, 2020
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Error Messages, SQL Scripts, SQL Server

Msg 3254 says the volume on a device is empty, followed by Msg 3013, RESTORE DATABASE is terminating abnormally. A client’s DBA hit it during a restore. In my lab, a text file passed off as a backup gave the same error, and the file size told the story.

Read More
Gouache painting of a wooden post mailbox overflowing with cream envelopes nobody has collected, a few fallen on the grass, one envelope vermilion

Error 9002: Transaction Log Full Due to REPLICATION

March 23, 2020
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Replication, SQL Scripts, SQL Server, Transaction Log

A transaction log full due to REPLICATION put error 9002 in a client’s ERRORLOG. The database showed no replication at all. The cause was a leftover publication with no subscriber, and here is how we cleared it and shrank the log.

Read More
One bowl of tiles supplies two distinct mosaic arrangements

What is the Difference Between sql_handle and plan_handle?- Interview Question of the Week #269

March 22, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL DMV, SQL Memory, SQL Scripts, SQL Server

Question: What is the Difference Between sql_handle and plan_handle?
Answer: I was recently asked this question. Let us see the answer today.

Read More
A hand holding open the front of a Victorian dollhouse to show the rooms and staircase inside

Capturing the SQL Behind SSMS Reports With Extended Events

March 21, 2020
Pinal Dave
SQL Tips and Tricks
SQL Extended Events, SQL Reports, SQL Server, SQL Server Management Studio

Capture the SQL behind SSMS reports with a filtered Extended Events ring buffer, inspect batch text, and remove the session afterward.

Read More
Previous 1 … 53 54 55 56 57 58 59 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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