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

Blitz Result: Slow Storage Reads or Writes

https://www.brentozar.com/blitz/slow-storage-reads-writes/ SQL Server feels the need – the need for speed.  Storage speed, to be more specific.  One of the most common bottlenecks is underperforming storage subsystems. SQL Server tracks read and write speeds for each database file – both data and log files.  This part of our SQL Server sp_Blitz script checks sys.dm_io_virtual_file_stats looking for average... » read more

DBCC CHECKDB Not Run Recently

https://www.brentozar.com/blitz/dbcc-checkdb-not-run-recently/ When SQL Server writes data to your drives, it just assumes everything’s okay until it needs to read the data back again. Unfortunately, in the event of storage corruption, the storage isn’t so kind as to alert SQL Server.  And sometimes, SQL Server has even been known to corrupt itself. We need to periodically check... » read more

SSRS 2022 Install Error with .NET

Error: Getting the following error when trying to install SQL Server Reporting Services (SSRS) 2022 Dev. Stuck on “Installing Microsoft .NET 4.8” Error code 0x800713ec-Asia Fix: Install the offline .NET Framework installer version first, then go back and install SSRS. The server might not have internet access. SSRS install will need to download specific packages... » read more

SELECT failed because the following SET options have incorrect settings: ‘QUOTED_IDENTIFIER’

Error: SELECT failed because the following SET options have incorrect settings: ‘QUOTED_IDENTIFIER’. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations. Fix: Replace… SET QUOTED_IDENTIFIER OFFGO with… SET QUOTED_IDENTIFIER ONGO SET QUOTED_IDENTIFIER must... » read more