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 an orchard irrigation channel with a lifted red wooden gate letting water flow through

Print Status Messages Using RAISERROR WITH NOWAIT

March 11, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server

To see progress while a long script runs, use RAISERROR WITH NOWAIT instead of PRINT. This post builds a progress loop, formats values with placeholders, and shows the percent sign trap that garbles a message. It also explains how severity decides whether a message stays inside a TRY block, and where the 2,047 character limit cuts a message.

Read More
SQL SERVER - Script Upgrade - Server Principal 'MS_PolicyEventProcessingLogin' Has Granted One or More Permission(s)

SQL SERVER – Script Upgrade – Server Principal ‘MS_PolicyEventProcessingLogin’ Has Granted One or More Permission(s)

March 10, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server Configuration, Starting SQL

SQL Server would not start after patching: Script Upgrade failed because ##MS_PolicyEventProcessingLogin## had been granted permissions. Here is the fix.

Read More
Performance Monitor Graph.

SQL SERVER – FIX : Msg 35295, Level 16 – Log Backup For Database ‘DBName’ on a Secondary Replica Failed

March 9, 2017
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Backup and Restore, SQL Mirroring, SQL Server, Transaction Log

During load testing, a log backup on a secondary replica failed with Msg 35295 because the last backup LSN was ahead of the redo LSN. Here is why.

Read More
State with wait preemptions.

SQL SERVER – Queries are in KILLED/ROLLBACK State with Wait PREEMPTIVE_OLEDB_RELEASE

March 8, 2017
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Wait Stats

After a network outage, queries stayed in KILLED/ROLLBACK with the undocumented wait PREEMPTIVE_OLEDB_RELEASE. What I saw and how to clear them.

Read More
Gouache painting of an installation package and checklist beside a component marked for inspection

SQL SERVER – Installation Error – The Specified Driver is Invalid

March 7, 2017
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Installation, Starting SQL

The specified driver is invalid error led to performance-counter files in this SQL Server 2012 case. Fresh installation media resolved the failure.

Read More
Registry Editor displaying SQL Browser error.

SQL SERVER – SQL Browser not Starting. Error – The SQL Configuration for SQL is Inaccessible or Invalid

March 6, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Configuration, Starting SQL

After server hardening, SQL Browser would not start and the event log said the SQL configuration for SQL is inaccessible or invalid. Here is the fix.

Read More
Two connected irrigation pumps allow one housing to be inspected while its partner remains intact.

SQL SERVER – How to Apply Patch in AlwaysOn Availability Group Configuration?

March 4, 2017
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Scripts, SQL Server

A Patch in AlwaysOn Availability Group needs a sequence matched to the topology. I start this two-replica example with the secondary.

Read More
Previous 1 … 161 162 163 164 165 166 167 … 571 Next
  • Books
  • Testimonials
  • Privacy Policy

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