SCSQL unable to discover SQL instance
Applies to
SnapCenter Plugin for SQL (SCSQL)
Issue
- The SnapCenter Resources pane lists a SQL instance with a red padlock.
- Selecting the instance shows a informational message, "
The Microsoft SQL server or Windows credentials are necessary to unlock the selected instance. Click Refresh Resources to run a discovery with the associated Auth.
". - Configuring SnapCenter to use the desired account and refreshing resources for the instance still shows the same red padlock and informational message.
- The SCSQL plugin log (SmSql_xxx) for the SQL discovery shows the following error:
2023-08-08T17:19:47.6446850+02:00 DEBUG SmSql_450726 PID=[3576] TID=[17] Connecting to SQL Server: [<SQL INSTANCE>]
2023-08-08T17:19:48.3634696+02:00 ERROR SmSql_450726 PID=[3576] TID=[10] ConnectionFailureException: Failed to connect to server <SQL INSTANCE>. Login failed for user '<USER ACCOUNT>'.
2023-08-08T17:19:48.3634696+02:00 ERROR SmSql_450726 PID=[3576] TID=[10] ErrorCode (10010), ErrorMessage (The user '<USER ACCOUNT>' does not have required permission to connect to the SQL instance '<SQL INSTANCE>'. Error: Login failed for user '<USER ACCOUNT>'.)
2023-08-08T17:19:48.3634696+02:00 ERROR SmSql_450726 PID=[3576] TID=[10] The user '<USER ACCOUNT>' does not have required permission to connect to the SQL instance '<SQL INSTANCE>'. Error: Login failed for user '<USER ACCOUNT>'.
2023-08-08T17:19:48.3634696+02:00 ERROR SmSql_450726 PID=[3576] TID=[10] Failed to enumerate SQL Server instance {<SQL INSTANCE>}