How to Attach Database and Grant Access to SSAS Service Account in SQL Server 2012


Ahamed Fazil Buhari
SharePoint Developer
Published On :   18 Nov 2016
Visit Count
Today :  1    Total :   1920
Plan, Migrate, Secure, Report
SharePoint & Office 365 Tool. Simple & Easy to Use. 15-Day Trial!

SharePoint Office 365 Tool
Simple & Powerful Tool for Migration, Security & Reporting. Free Trial


Consider that we have a Database and we need to attach that in our SharePoint Database engine and in addition to that we need to grant access to that database to the Service Account which has been used to install SQL Server Analysis Service (SSAS).

Here, I’ve couple of sample databases downloaded from CodePlex. AdventureWorksDW2012 Data File and AdventureWorks Multidimensional Models SQL Server 2012.

clip_image002

Let’s open the File Explorer and paste the AdventureWorksDW2012_Data.mdf File in the following location, C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\

clip_image004

Now open up the SQL Server 2012 Management Studio to connect to our Database Engine,

1. Right click on the Server and choose Attach.

clip_image006

2. In Attach Database window, click on ‘Add’ button and select the database that needs to be attached and click on OK.

clip_image008

3. After attach, we can see that database in our server,

clip_image010

Now we need to grant access to our SSAS service account for the attached Database.

1. Go to Security -> Login -> New Login

clip_image012

2. We need to add a login for the Service Account that we use for our SQL Server Analysis Service

clip_image014

3. Now go ahead and click on User Mapping in side navigation, select the database and provide the role membership for that selected db.

clip_image016

In the next article, we will go ahead and add the Multidimensional Cube to Analysis Service.

Happy Coding

Ahamed

SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Categories

KWizCom Touch