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

Ahamed Fazil Buhari
 
Senior Developer
November 18, 2016
 
Rate this article
 
Views
4801

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

Category : SQL

Author Info

Ahamed Fazil Buhari
 
Senior Developer
 
Rate this article
 
Ahamed is a Senior Developer and he has very good experience in the field of Microsoft Technologies, especially SharePoint, Azure, M365, SPFx, .NET and client side scripting - JavaScript, TypeScript, ...read more
 

Leave a comment