MSDN Community

Your source for Microsoft Developer Network articles and discussions.

Deploying the Model

This tutorial section guides you through the process of deploying your Analysis Services model to a production environment. Deployment ensures that your users can access and query the data model effectively.

Prerequisites

Before proceeding, ensure you have:

Steps for Deployment

Follow these steps to deploy your Analysis Services model:

  1. Build the Analysis Services Project:

    In Visual Studio, right-click on your Analysis Services project in Solution Explorer and select Build. This compiles your project into deployable assemblies.

  2. Configure Deployment Properties:

    Right-click on your Analysis Services project and select Properties. Navigate to the Deployment tab. Here you can specify the Server name (your Analysis Services instance) and the Database name for the deployed model.

    Important: If the target database does not exist, Analysis Services will create it during the first deployment. Ensure you have permissions to create databases if this is the case.

  3. Deploy the Project:

    In the project properties window (Deployment tab), click the Deploy button. Alternatively, you can right-click the project in Solution Explorer and select Deploy.

    Visual Studio will initiate the deployment process. You can monitor the progress in the Output window.

  4. Verify Deployment:

    Once the deployment is complete, connect to your Analysis Services instance using SQL Server Management Studio (SSMS) or Visual Studio. Verify that the new database has been created and that your model's objects (tables, dimensions, measures, etc.) are present.

    You can also perform a test query against the deployed model to ensure it's functioning as expected.

Deployment Options and Considerations

Troubleshooting Common Issues

If you encounter issues during deployment, check the following:

Pro Tip: Regularly backup your Analysis Services databases after successful deployments to safeguard your data.

This concludes the basic deployment of your Analysis Services model. For more advanced deployment scenarios, refer to the official Microsoft documentation.