How to: Batch Process Analysis Services Objects

In Microsoft SQL Server 2005 Analysis Services (SSAS), you can process objects in batches. Using batch processing you can select the objects to be processed, and control the processing order. Also, a batch can run as a series of stand-alone jobs, or as a transaction in which the failure of one process causes a rollback of the complete batch.

You can execute batch processing using one of these methods:

  • Object Explorer in SQL Server Management Studio. Using this method, you can select similar objects, such as a set of dimensions or a set of partitions, for batch processing. To process other objects, you can select the setting Process affected objects for processing partitions affected by dimension processing. For more information, see Processing Options and Settings.
  • Solution Explorer in Business Intelligence Development Studio. This method provides the same functionality that you find using Object Explorer in Management Studio. Before objects can be processed in BI Development Studio, the project that contains the objects must be deployed. For more information, see Deploying Analysis Services Projects.
  • An XMLA script using the XMLA Query window in Management Studio or as a scheduled task. You can create and execute an XMLA script using Management Studio as described in the following procedure. For more information about executing an XMLA script as a scheduled task, see Scheduling Administrative Tasks Using SQL Server Agent.

The following procedures show the steps for fully processing dimensions and partitions. Batch processing can also include other processing options, such as incremental processing. For these procedures to work correctly, you should use an existing SQL Server 2005 Analysis Services (SSAS) database that contains at least two dimensions and one partition. We strongly recommend that you execute these procedures in a test environment, not on production systems.

To create and execute a batch process using Object Explorer in SQL Server Management Studio

  1. Open Management Studio,locate an Analysis Services database, and expand the database container.

  2. Click the Dimensions folder, and then click the Summary tab.

  3. Holding the Ctrl key, click each dimension listed in the Summary display window.

  4. Right-click the selected dimensions and select Process.

  5. Holding the Ctrl key, click each dimension listed in the Object list.

  6. Right-click the selected dimensions and select Process Full.

  7. To customize the batch process job, click Change Settings.

  8. Under Processing options, mark the following settings:

    • Processing Order is set to Sequential, and Transaction mode is set to One Transaction.
    • Writeback Table Option is set to Use existing.
    • Under Affected Objects, select the Process affected objects check box.
  9. Click the Dimension key errors tab. Verify that Use default error configuration is selected.

  10. Click OK to close the Change Settings screen.

  11. Click OK in the Process Objects screen to start the processing job.

  12. When the Status box shows Process succeeded, click Close.

To create and execute a batch process using Solution Explorer in Business Intelligence Management Studio

  1. Open BI Development Studio.

  2. Open a project that has been deployed.

  3. In Solution Explorer, under the deployed project, expand the Dimensions folder.

  4. Holding the Ctrl key, click each dimension listed in the Dimensions folder.

  5. Right-click the selected dimensions, and then click Process.

  6. Holding the Ctrl key, click each dimension listed in the Object list.

  7. Right-click the selected dimensions and select Process Full.

  8. To customize the batch process job, click Change Settings.

  9. Under Processing options, mark the following settings:

    • Processing Order is set to Sequential, and Transaction mode is set to One Transaction.
    • Writeback Table Option is set to Use existing.
    • Under Affected Objects, select the Process affected objects check box.
  10. Click the Dimension key errors tab. Verify that Use default error configuration is selected.

  11. Click OK to close the Change Settings screen.

  12. Click Run in the Process Objects screen to start the processing job.

  13. When the Status box shows Process succeeded, click Close.

  14. Click Close on the Process Objects screen.

To create and execute an XMLA script using Object Explorer in SQL Server Management Studio

  1. You can manually write an XMLA script to work with Analysis Services using any text editor, such as Notepad. However, you can use Analysis Services to create an XMLA script in Management Studio that can be executed in the XMLA Query window on any SQL Server 2005 Analysis Services (SSAS) computer, or inside a task that can be scheduled. This procedure shows how to create and execute an XMLA script using SQL Server Management Studio. For more information about scheduled tasks, see Scheduling Administrative Tasks Using SQL Server Agent.

  2. Open Management Studio,locate an Analysis Services database, and expand the database container.

  3. Click the Dimensions folder, and then click the Summary tab.

  4. Holding the Ctrl key, click each dimension listed in the Summary display window.

  5. Right-click the selected dimensions and select Process.

  6. Holding the Ctrl key, click each dimension listed in the Object list.

  7. Right-click the selected dimensions and select Process Full.

  8. To customize the batch process job, click Change Settings.

  9. Under Processing options, mark the following settings:

    • Processing Order is set to Sequential, and Transaction mode is set to One Transaction.
    • Writeback Table Option is set to Use existing.
    • Under Affected Objects, select the Process affected objects check box.
  10. Click the Dimension key errors tab. Verify that Use default error configuration is selected.

  11. Click OK to close the Change Settings screen.

  12. In the Process Objects screen, click Script. This step generates an XMLA script, and opens an XMLA Query window in which the XMLA script can be executed.

  13. In the Process Objects screen, click Cancel to close the screen without executing the processing job.

  14. Switch to the XMLA Query window, and then click Execute to execute the script.

See Also

Concepts

Batch Processing in Analysis Services
Processing in Analysis Services

Other Resources

Administering Analysis Services in Management Studio How-to Topics

Help and Information

Getting SQL Server 2005 Assistance