Network Management
Unable to view server state of the SQL server in Orion platform
When running the diagnostic tool on the Orion server you can get an error that the tool was not able to verify the max degree of parallelism due to insufficient SQL permissions on the Orion database user account. Or when running the Configuration Wizard, it does not proceed past selecting a database.
First published date
Last published date
Overview
ERROR SceneContainer - SceneContainer:bntNext_Click: System.Data.SqlClient.SqlException (0x80131904): VIEW SERVER STATE permission was denied on object 'server', database 'master'. The user does not have permission to perform this action.
Product section
Cause
The Orion Database User Account does not have permission to view the server state on the SQL server. This permission is required to proceed.
Resolution
Grant View Server State permission to the Orion Database User Account.
Steps to modify the account permission on the SQL database:
The error should no longer be present when you run the diagnostic tool.
(Screenshots property of © 2020 Microsoft)
This can also be done with a SQL query:
-- 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. GRANT VIEW SERVER STATE TO [SQL Server Login/Configuration Wizard Username]
NOTE: if the user logged in does not have the necessary permission to grant view server state to this user, the action will not grant permission and no error message will be shown. However, if you use the query, an error will be returned. In that situation, you must connect to the database server using an account that has sysadmin permissions.