Populating Local Cubes

Use the INSERT INTO statement to populate local cubes with dimension structure and data. If the cube file specified in the DBPROP_INIT_DATASOURCE property does not exist, it will be created during processing of the INSERT INTO statement.

The INSERT INTO statement is used after a CREATE CUBE statement. These statements are used together to create a local cube.

The INSERT INTO statement can perform the following operations on a local cube:

Mapping

The INSERT INTO statement maps columns of the local cube’s data source to elements (levels and measures) in the cube.

Populating the Dimension Structure

The dimension structure of a local cube can be populated during the execution of the INSERT INTO statement by using a SELECT clause executed on the data source. This clause generates the cube’s dimension trees and measures. After the SELECT clause has been executed, the dimensions of the cube are fully populated and become static.


Note You can use methods other than the SELECT clause to populate the dimension structure of a local cube.


Populating the Cube with Data

Data can be read from the data source into the local cube in one of two modes:

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.