Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to attach/install an analysis services database Expand / Collapse
Author
Message
Posted Sunday, March 03, 2013 10:58 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, April 01, 2014 3:25 AM
Points: 253, Visits: 608
Hi guys,

I need some help with attaching an AdventureWorks analysis services database. I am trying to attach it but am getting the following error:

The database folder '<folder>\AdventureWorks SSAS.database' does not exist, is too long, or contains characters that are not valid or are reserved.

I am using the following script to attach the database;

<Attach xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">

<Folder>'<folder>'\AdventureWorksSSAS.db\</Folder>

<ReadWriteMode xmlns="http://schemas.microsoft.com/analysisservices/2008/engine/100">ReadOnly</ReadWriteMode>

</Attach>

Is there something that I am doing wrong? Please help!.

Regards
IC
Post #1426087
Posted Monday, March 04, 2013 9:58 PM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Tuesday, April 01, 2014 2:57 PM
Points: 443, Visits: 822
Imke Cronje (3/3/2013)
Hi guys,

I need some help with attaching an AdventureWorks analysis services database. I am trying to attach it but am getting the following error:

The database folder '<folder>\AdventureWorks SSAS.database' does not exist, is too long, or contains characters that are not valid or are reserved.

I am using the following script to attach the database;

<Attach xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">

<Folder>'<folder>'\AdventureWorksSSAS.db\</Folder>

<ReadWriteMode xmlns="http://schemas.microsoft.com/analysisservices/2008/engine/100">ReadOnly</ReadWriteMode>

</Attach>

Is there something that I am doing wrong? Please help!.

Regards
IC


The script you have looks like a bare-bones xml query. The error is because that folder "does not exist" in your SQL Server Analysis Services installation.

The first line is defining the schema of the XML, the rest assumes you have a folder with that name \AdventureWorksSSAS.db\ in your default location for the SSAS installation.


You will need to deploy it from an Analysis Services project from BIDS (visual studio).
All the files for adventureworks are here. 2012 now has both a tabular model and a multidimensional model, you probably want the multidimensional although grab both. You will also need to download the AdventureworksDW2012 (or whichever version of the DataWarehouse database that matches the SSAS project).
Instructions for deploying the analysis services project are basically open the solution in visual studio and deploy to your server, but that link has more instructions.

Note you can also attach a backup of an analysis services database using SSMS by first connecting to ANALYSIS Services (not the default database service) and then right clicking on the "Databases" folder in the object explorer and chosing "attach", similar to attaching a regular database. You need the files in place first to do this though ( or a backup from another server).
Post #1426591
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse