SQL Server 2012: Login failed for user 'NT Service\MSSQLServerOLAPService'.; 28000

后端 未结 7 1791
执笔经年
执笔经年 2020-12-09 09:45

I am using Analysis services in Microsoft SQL Server 2012 on Windows 7.

I tried to create Mining models and process it. I am getting the following error while proces

相关标签:
7条回答
  • 2020-12-09 10:13

    1-Run "SQL Server Configuration Manager"

    2-Select "SQL Server Services"

    3-Right Click "SQL Server Analysis Services" and choose properties

    4-On the "log on " tab ,choose "this account".

    5-Click "Browse" button , then Click "Advanced" button.

    6-Click "find now" button . Now find your account in the below table and select it.

    7-When you selected proper account (With sufficient permission) , return to "log on" tab

    and enter your password

    8-Restart service and try again your task...

    I hope this could help ...

    0 讨论(0)
  • 2020-12-09 10:15

    I just had the same issue, but other people's answers does not help.

    In my case I fixed like this:

    1. Open SQL Server configuration manager
    2. In SQL Services > Double click on SQL Server and copy the full user (in my case NT Service\MSSQLSERVER)
    3. Double click on SQL Server Analysis Services
    4. Paste the user with no password

    You will probably need to set "Use the service account" in your Data Source, in your project of Visual Studio

    0 讨论(0)
  • 2020-12-09 10:18

    I found my solution using the oposite logic of Amir.

    • Run "SQL Server Configuration Manager"
    • Select "SQL Server Services"
    • Right Click "SQL Server Analysis Services" and choose properties.
    • On the "log on " tab ,choose "Built-In Account".
    • Finally select "Local System".

    Though I am just running things locally to make modifications that will later be pushed to production. So if you're running locally, this solution may help.

    0 讨论(0)
  • 2020-12-09 10:22
    1. Run 'Sql Server Configuration Manager' and check 'Log On As' account name of SQL Server Analysis Services (...name...).
    2. Copy this account name (double click to open and then copy)
    3. Open 'SQL Server Management Studio' and login to 'Database Engine'.
    4. Go to Security > Logins click on 'New Login...' and give the copied name.
    5. Restart servers

    Should be able to deploy now.

    0 讨论(0)
  • 2020-12-09 10:27

    Try the steps below:

    Credit (JetBoy2k) : https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0a1ce033-29fb-49a9-944a-ee2ea55e69a8/errors-in-the-highlevel-relational-engine-a-connection-could-not-be-made-to-the-data-source-with?forum=sqlanalysisservices

    1. Set Impersonation Mode to service account by opening the Data Source configuration window in Visual Studio and selecting Use the service account in the Impersonation Information window.

    2. Go into the services MMC console (Right-click on the Windows home button, select Run, and in the Run dialog window, type in services.msc and click OK).

    3. Scroll down the services list in the right pane until you find the SQL Server Analysis Services service, and look in the Log On As column to find the account name that the service runs under. Copy the fully qualified account name (NT Service\SSASAccountName) and close the Services MMC window.

    4. In SSMS, click on the Database that you need to access.

    5. Create a login for the SSAS service account with the following SQL command:

    CREATE LOGIN [NT Service\MSOLAP$SSASSERVICEACCOUNTNAME] FROM WINDOWS

    1. Click on the Security folder for that database.

    2. Under the Security folder, right-click on the Users folder, then click on New User on the fly-out menu.

    3. In the Database User - New window, select Windows User from the User Type drop-down.

    4. In the User name field, enter the AS account name.

    5. Click on the ellipsis button for the Login Name field.

    6. In the Select Login window, enter the account name and click OK.

    7. Back in the Database User - New window, enter dbo for the Default schema value, then click OK.

    8. You should now see the AS service account in the Users folder.

    9. Double-click on the Roles folder, just below the Users folder, and then double-click on the database Roles folder.

    10. Double click on the DB-owner role. This will open the Database role properties - db_owner window.

    11. In the Database role properties - db_owner window, click on the Add button below the Members of this role pane.

    12. In the Select Database User or Role window, click on the Browse button

    13. The AS service account will be listed in the Browse for Objects window. Select the checkbox for the account and click OK.

    14. Back in the Select Database User or Role window, click OK.

    15. You should now see the AS service account listed as a Role Member in the Members of this role pane of the Database role properties - db_owner window.

    16. Click OK.

    0 讨论(0)
  • 2020-12-09 10:30

    I had to go an extra step to Gayan Dasanayake's answer given above as I was still encountering permission errors when I completed all the steps.

    In my case, I had to add the user 'NT SERVICE\MSSQLServerOLAPService' to the actual database as well and grant 'select' permission on all the dimension and fact tables via the 'Securables' section by right-clicking on the users properties in SMSS.

    0 讨论(0)
提交回复
热议问题