Network Management

Verify Query Optimizer Fixes value (Orion Database health)

This article will walk you through correcting the Query Optimizer Fixes issue shown in SolarWinds Active Diagnostics and Deployment Health.

First published date

3/15/2021 8:19 PM

Last published date

10/24/2025 9:30 PM

Overview

Enabling Query Optimizer is recommended by SolarWinds developers for a more reliable database experience. Please note this option is only available in SQL Server 2016 and later versions. You will also be presented with the below notice in Deployment Health or in Active Diagnostics.


image.png

image.png

Product section

Orion Platform

Resolution

There are two ways to implement the changes.

GUI method:
1. Run SQL Server Management Studio (SSMS)
2. Once connected, expand Databases
3. Right-click the main Orion database and go to Properties
4. Select Options
5. Change Query Optimizer Fixes to ON and hit the OK button
 

SSMS setting to change.png



SQL query method:
If the SQL user has sufficient permissions, the below query can be executed through the Orion Database Manager or SQL Server Management Studio (SSMS).
 

-- Scripts are not supported under any SolarWinds support program or service.
-- Scripts are provided AS IS without warranty of any kind. SolarWinds further
-- disclaims all warranties including, without limitation, any implied warranties
-- of merchantability or of fitness for a particular purpose. The risk arising
-- out of the use or performance of the scripts and documentation stays with you.
-- In no event shall SolarWinds or anyone else involved in the creation,
-- production, or delivery of the scripts be liable for any damages whatsoever
-- (including, without limitation, damages for loss of business profits, business
-- interruption, loss of business information, or other pecuniary loss) arising
-- out of the use of or inability to use the scripts or documentation.

ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES=ON;