Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to attach/install an analysis services database


How to attach/install an analysis services database

Author
Message
Imke Cronje
Imke Cronje
SSC Veteran
SSC Veteran (272 reputation)SSC Veteran (272 reputation)SSC Veteran (272 reputation)SSC Veteran (272 reputation)SSC Veteran (272 reputation)SSC Veteran (272 reputation)SSC Veteran (272 reputation)SSC Veteran (272 reputation)

Group: General Forum Members
Points: 272 Visits: 804
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
davoscollective
davoscollective
SSChasing Mays
SSChasing Mays (601 reputation)SSChasing Mays (601 reputation)SSChasing Mays (601 reputation)SSChasing Mays (601 reputation)SSChasing Mays (601 reputation)SSChasing Mays (601 reputation)SSChasing Mays (601 reputation)SSChasing Mays (601 reputation)

Group: General Forum Members
Points: 601 Visits: 1000
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).
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search