Author

Failed to open the Windows Server Failover Clustering registry subkey ‘HadrAgNameToIdMap’

Error: Failed to open the Windows Server Failover Clustering registry subkey ‘HadrAgNameToIdMap’. (Microsoft SQL Server, Error: 41030) Fix: Disable Always On Available Groups and then Re-enable Always On Available Groups from SQL Server Configuration Manager. Using SQL Server Configuration Manager To disable AlwaysOn Connect to the Windows Server Failover Clustering (WSFC) node that hosts the... » read more

The resource type is not registered in the WSFC cluster.

Error: When trying to create a new Available Group in SQL Server Always On, you get the following error message… Failed to create the Windows Server Failover Clustering (WSFC) resource with the name 'xxxxx' and type 'SQL Server Availability Group'. The resource type is not registered in the WSFC cluster. Fix: Register the resource type... » read more

Always On: New Availability Group via Wizard

Specify Name Enter name of availability group. Specify Databases Database must meet prerequisites requirements. Full recovery mode is required. Specify Replicas “Add Replica” as Secondary role Select “Automatic Failover” for each server Select “Synchronous Commit” for each server Select “Readable Secondary” for each server Select Data Synchronization “Full” – when you want the wizard to... » read more

Database stuck in Restoring state

Problem: SQL Server database stuck in RESTORING state Sometimes the database is in a restoring state after restarting the machine or for some other reason. It usually happens with big databases when a long transaction is in progress and an unexpected server shutdown or restart occurs. Fix: Sources: https://www.mssqltips.com/sqlservertip/5460/sql-server-database-stuck-in-restoring-state/

Extend Existing Partition

Use the following to check the current range for the partition. Example: Extend existing partition from 2018 to 2019. Add additional file group first, then modify partition schema and function. No need to modify partition table itself if the table is already setup to use partition. Step 1: Add Additional File Group Step 2: Add... » read more

Unable to validate the integrity of encrypted data

Error: The report server was unable to validate the integrity of encrypted data in the database. (rsCannotValidateEncryptedData) Solution: Reporting Services Configuration Manager -> Encryption Keys -> Change Need to reset data source connection in SSRS.

Restore Database From Backup with Replace Option

REPLACE Option Impact REPLACE should be used rarely and only after careful consideration. Restore normally prevents accidentally overwriting a database with a different database. If the database specified in a RESTORE statement already exists on the current server and the specified database family GUID differs from the database family GUID recorded in the backup set,... » read more

Unable to log off RDC

RDCMan Error Unable to log off from xxxxxxxx. Reason: Unable to enumerate remote sessions. Issue: That error is common when using Remote Desktop Connection Manager and trying to log off via right click. You should log out via the start menu in the remote desktop session.