Apply Latest CU Update for SQL Server 2019

Note: Run the SQLServer2019-KB5039747-x64.exe file to start the patch. An GUI similar to the SQL Server Install will popup to guide you through the patch process. Make sure SQL Server services has been stopped. Make sure to restart the server after the patch has completed. After the restart, the SQL Server version should reflect what... » read more

Windows Failover Cluster – Configure a File Share Witness

Create a Witness This sections shows how to  create a witness. In the Failover Cluster Manager, locate the new cluster resource, right click, More Actions, Configure Cluster Quorum Settings. You Begin page of the Configure Quorum Wizard Choose “Select the quorum witness” Quorum Configuration Option page. This is where you will inform the Wizard which... » read more

SQL Job stuck in “Performing completion action”

Issue: All the sql job stuck in the state “Performing completion action” An AlwaysOn failure would sometimes cause this issue. A network glitch between SQL Server and Exchange Server can also cause this issue. Fix: Restart the SQL Agent service.

Running Cluster Validation cause drives to disappear and go offline

When running a validation test on a Windows Failover Cluster, drives may disappear from the cluster and file explorer if the cluster is hosting an Availability Group with iSCSI-backed disks.  When you choose the default options in Validation – any storage that could be possibly shared storage is taken offline and brought into the cluster’s available... » read more

Troubleshoot SQL Server AlwaysOn Failures

Look into the following logs… Critical Events from Failover Cluster Manager Validate Cluster Report Windows Event Viewer Quick Action: Update SQL Server to Latest Patch. Reboot server on all nodes. Critical Events from Failover Cluster Manager Cluster -> Nodes -> Show Critical Events Validate Cluster Report Cluster -> Validate Cluster -> Run all test Windows... » read more

Fix AlwaysOn by Recreating AlwaysOn

Issue: Unable to get AlwaysOn database back online. The local availability replica is not in a state that could process the command. Verify that the availability group is online and that the local availability replica is the primary replica, then retry the command. (Microsoft SQL Server, Error: 41190) Fix: Drop AlwaysOn and re-create it. Steps:... » read more

Truncate table for system versioned table

Error: Msg 13545, Level 16, State 1, Line 14Truncate failed on table ‘tbXXXXX’ because it is not a supported operation on system-versioned tables. Resolution: Links: https://rajeevdotnet.blogspot.com/2019/05/truncate-system-version-table-temporal.html

SQL Server Database AlwaysOn without Clustering

It is possible to setup SQL Server AlwaysOn without Windows Failover Clustering. The feature “Windows Failover Cluster” does not need to be installed on the server. There will still be Primary and Secondary AlwaysOn servers. This setup is useful when you do not need failover, but simply to setup for a read-only secondary server. Note:... » read more