简体   繁体   中英

SQL SSAS - Deploying error

When I start deploying, I get this error:

Internal error: The operation terminated unsuccessfully.

Errors in the high-level relational engine. The database operation was cancelled because of an earlier failure.

Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Dim Customer', Name of 'Customer' was being processed.

OLE DB error: OLE DB or ODBC error: Login failed for user 'NT Service\\MSSQLServerOLAPService'.; 28000; Cannot open database "AdventureWorksDW2012" requested by the login. The login failed.; 42000.

What's wrong? and how can I fix it?

The error says, you need to add 'NT Service\\MSSQLServerOLAPService' user to "AdventureWorksDW2012" database. You can do this in SSMS. Connect to your "AdventureWorksDW2012" database. Under Security-> User, add new user 'NT Service\\MSSQLServerOLAPService' with db_datareader, db_owner(Optional) property [Membership, Owned_Schemas tab]

Have a look at the impersonation options on the data source you defined in analysis services that holds the source data of the customer dimension. There you can configure what credentials SSAS should use to connect to the data source.

MSDN entry on impersonation options

确保将用户“ NT Service \\ MSSQLServerOLAPService”添加到数据库中并分配适当的角色读取...也请确保在多维数据集源中的模拟选项下选择“使用服务帐户”选项。

Had the same problem and Daniel's Meresa answer was helpful. The detailed resolution in may case was to run SQL Management Studio and in Object Explorer select Security - Logins - Right click - "New Login...". Fill in the following login name "NT Service\\MSSQLServerOLAPService" and check sysadmin in Server Roles. It should be enough.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM