How to attach/install an analysis services database

  • 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

  • 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).

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply