qua_create_view_copy#

Creates a primary/secondary view copy for the materialized view. Copy needs to be created before it will be loaded. Note that this procedure does not load data, it just creates a place for the cache to be loaded later.

Can be used only with views that have the persistent cache configured. Secondary cache option is available only for the persistent cache with rotated tables.

Syntax#

qua_create_view_copy 'view_name', 'primarycopy' [;]

Arguments#

view_name

Fully qualified name of view which data is to be copied.

copy

SYSNAME that can be one of two values: ‘primary’ or ‘secondary’.

Example#

Creates primary copy view for AdventureWorksDW2012_spark.dbo.DimEmployee.

EXEC qua_create_view_copy 'AdventureWorksDW2012_spark.dbo.DimEmployee', 'primary';