Issue
CM Tool fails and the log file shows "SQL Server login failed for the current Windows user"
Product Line
Power Monitoring Expert 7.2.2
Power Monitoring Expert 8.2
Power Monitoring Expert 9.0
Power Monitoring Expert 2020
Power Monitoring Expert 2021
Power Monitoring Expert 2022
Power Monitoring Expert 2023
Power Monitoring Expert 2024
Environment
CM Tool
SQL Server
SQL Server management Studios (SSMS)
Resolution
Follow the steps below
Step 1:
- Add the windows account used for the installation purpose in sys admin access.
-
USE master;
GO
EXEC sp_addsrvrolemember @loginame = 'DOMAIN\USER', @rolename = 'sysadmin';
GO
-
- Run the CM Tool manually in command prompt administrator mode as same as previous method.
If the above step doesn't succeed, then proceed with step 2.
Step 2:
- Please ensure that step1 is completed so that the user account has sys admin access.
- Change the SQL\ION service to run on the logged in account.
- Right-click the windows button
- Select "Computer Management"
- When opened, select "Services and Applications"
- Select "Services"
- Navigate to the service named "SQL Server (ION)"
- In some cases, there may be a different name inside the parentheses.
- Right-click the service
- Select "Properties"
- Select the "Log On" tab
- Check the circular button labeled "This account"
- Enter the account information, Username (including domain) and password
- Select "OK"
- Acknowledge the message that will popup and adhere to its conditions
- Allow the current user the ability to log on to the server as a service.
- Right-click the Windows button
- Select "File Explorer"
- Select the file directory to navigate to the "control panel"
- Select "System and Security"
- Select "Administrative Tools"
- Select "Local Security Policy"
- Expand "Local Policies" by selecting the carrot symbol on the left of the icon
- Select "User Rights Assignment"
- Right-click "Log on as a service"
- Select "Properties"
- Select "Add User or Group..."
- type the current user information (both domain and username)
- Select "Check Names"
- Select "OK"
- Select "OK"
Released for:Schneider Electric Nigeria

