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 rack of lake water samples at dawn, one cloudy tube marked with a red clip.

Capturing sp_WhoIsActive Snapshots to a Table Every Minute

January 24, 2020
Pinal Dave
SQL Tips and Tricks
DBA, SQL Monitoring, SQL Server, SQL Server Agent

Capture sp_WhoIsActive snapshots every minute, keep seven days, and query past blockers and long requests from a logging table.

Read More
Gouache painting of an unmarked glass rain gauge on a wooden garden post with a vermilion float inside it and a small watering can at its foot

AUTO_UPDATE_STATISTICS_ASYNC Fixes WAIT_ON_SYNC_STATISTICS_REFRESH

January 23, 2020
Pinal Dave
SQL Performance
SQL Server, SQL Server Management Studio, SQL Statistics, SQL Wait Stats

AUTO_UPDATE_STATISTICS_ASYNC is the setting that cleared a new wait type, WAIT_ON_SYNC_STATISTICS_REFRESH, for my client. With auto update statistics on and stale statistics, the query halts while the statistics update. Switching the update to asynchronous removed the wait.

Read More
Gouache painting of a chest of drawers pulled partly open, each drawer holding a sage ball of yarn and one vermilion ball

Find All Columns With a Specific Name in SQL Server

January 22, 2020
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Datatype, SQL Scripts, SQL Server

To find all columns with a specific name, query sys.columns and join sys.types for the data type. This post lists the matches with their schema, leaves out system objects, and then uses the same catalog to find names that appear with different data types.

Read More
Gouache painting of a slate-blue front door, closed, with a brass letter slot sealed by a small vermilion tab

Provisioning Computer Object Failed With Error 5: Always On Listener Failure

January 21, 2020
Pinal Dave
SQL Tips and Tricks
AlwaysOn, Computer Network, SQL Error Messages, SQL Server Cluster, Windows

Provisioning computer object failed with error 5 is a cause of Always On listener creation failure. The cluster log showed the cluster computer object being denied access while changing the listener’s password. Giving the CNO Full Control over the listener object fixes it.

Read More
Gouache painting of a freight train of coupled cars along a track, the nearest car vermilion

SqlServerWriter Missing in vssadmin: Causes and Fixes

January 20, 2020
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Command, SQL Error Messages, SQL Scripts

SqlServerWriter missing from the vssadmin output means a backup tool that relies on VSS cannot back up SQL Server. This post checks the three causes: a space at the end of a database name, a login without sysadmin rights, and a stopped writer service. It tests the name check with a demo database.

Read More
An unfinished knitted square can be unravelled and worked anew from the same yarn

How to Recompile Stored Procedure? – Interview Question of the Week #260

January 19, 2020
Pinal Dave
SQL Interview Questions and Answers
Parameter Sniffing, SQL Performance, SQL Scripts, SQL Server, SQL Stored Procedure

Question: How to Recompile Stored Procedure?
Answer: The answer to this question is here:

EXEC sp_recompile ‘NameofSP’

Let us read more about it.

Read More
Gouache painting of a wooden xylophone with cream bars and one vermilion bar in the middle

Agent Service Missing in Configuration Manager: The Fix

January 18, 2020
Pinal Dave
SQL Tips and Tricks
Registry, SQL Error Messages, SQL Server Agent, SQL Server Services

An Agent service missing in Configuration Manager can come from a wrong program path. This post compares the service lists, reads the Agent path with T-SQL, checks that the file exists, and explains how to repair the path.

Read More
Previous 1 … 132 133 134 135 136 137 138 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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