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 still weaving loom continues to hold unfinished fabric under tension

How to Kill Processes Idle for X Hours? – Interview Question of the Week #152

December 17, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Connection, SQL Cursor, SQL Scripts, SQL Server, System Object

Interview question: how to kill processes idle for X hours in SQL Server? Here is a script that finds idle sessions and kills them.

Read More
Gouache painting of a wooden front door with a round brass doorbell button held pressed by a strip of vermilion tape, potted plants on the step

Error 0x80040E4D: SaveToSQLServer Fails With Login Failed for sa

October 2, 2017
Pinal Dave
SQL Tips and Tricks
Maintenance Plan, SQL Connection, SQL Error Messages, SQL Login, SQL Password

Error 0x80040E4D stopped a client from saving a maintenance plan, with Login failed for user sa at the end of the message. The sa login was locked out by another maintenance plan that still used an old password. Windows authentication worked in the meantime.

Read More
SQL SERVER - An Error Occurred While Obtaining the Dedicated Administrator Connection (DAC) Port

SQL SERVER – An Error Occurred While Obtaining the Dedicated Administrator Connection (DAC) Port

July 8, 2017
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL Error Messages, SQL Server, Starting SQL

A student could not connect with the Dedicated Administrator Connection (DAC) after my class. Here is the port error he saw and how to fix it.

Read More
SQL Server database mirroring error.

SQL SERVER – Database Mirroring Login Attempt Failed With Error: ‘Connection Handshake Failed. There is No Compatible Encryption Algorithm. State 22

May 3, 2017
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL Error Messages, SQL Mirroring, SQL Scripts, SQL Server

Moving from database mirroring to an AlwaysOn AG failed with a handshake error: no compatible encryption algorithm. Comparing the endpoints showed why.

Read More
Two disconnected brass couplings lying apart across a red painted floor line

SQL SERVER – Mirroring Error: Connection handshake failed. Could not send a handshake message because the connection was closed by peer. State 26

April 26, 2017
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL Error Messages, SQL Mirroring, SQL Server

A mirroring error, connection handshake failed, State 26. The checks I once asked readers for, run on SQL Server 2025 on a real endpoint.

Read More
A travel trunk carries a blank removable tag with alternate tags nearby

Why SELECT HOST_NAME() Returns Empty String? – Interview Question of the Week #119

April 23, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Connection, SQL Function, SQL Server, SQL Server Management Studio

Question: Why SELECT HOST_NAME() Returns Empty String while connected from certain .net application?

Read More
Diagram of database mirroring between workgroup machines: the principal sends data to the mirror, and the connections to the witness fail because the witness endpoint gives the login_mirroring login no CONNECT permission, with the GRANT CONNECT fix

Mirroring Endpoint Permission: Fixing Connection Handshake Failed

January 6, 2017
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL Mirroring, SQL Scripts, SQL Server

A friend using certificates on workgroup machines saw Connection Handshake Failed on every mirroring login attempt. The witness ERRORLOG showed a missing mirroring endpoint permission, and one GRANT statement fixed it.

Read More
Previous 1 2 3 4 5 6 7 … 10 Next
  • Books
  • Testimonials
  • Privacy Policy

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