The REFRESH statement can be sent
manually. You can send the REFRESH statement for each additional server
that the schema is associated with.
refresh cube (cubename | "_ALL_" )
Cubename specifies
a single cube to refresh for the current server connection. _ALL_
specifies that all cubes are refreshed for the current server connection.
Here are some examples.
This example uses the
REFRESH statement to refresh the metadata associated with a cube named
OrionStar.
refresh cube [OrionStar]
This example uses the
REFRESH statement to refresh the metadata for all cubes managed by
the connected server.
refresh cube _ALL_
You can use the OLAP
MDX SQL pass-through facility to send the DLL REFRESH statement to
a server. Here is an example.
proc sql noerrorstop;
connect to olap (&olapcon);
execute
(
refresh cube [OrionStar]
) by olap;
proc sql noerrorstop;
connect to olap (&olapcon);
execute
(
refresh cube _ALL_
) by olap;