Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 2 KB

File metadata and controls

35 lines (28 loc) · 2 KB
title Modifying Data (MDX) | Microsoft Docs
ms.custom
ms.date 06/13/2017
ms.prod sql-server-2014
ms.reviewer
ms.technology analysis-services
ms.topic conceptual
helpviewer_keywords
modifying data [MDX]
Multidimensional Expressions [Analysis Services], data modifications
MDX [Analysis Services], data modifications
data modifications [MDX]
ms.assetid 363b662c-b839-4971-bbd7-1842f73ce141
author minewiskan
ms.author owend
manager craigg

Modifying Data (MDX)

Besides using Multidimensional Expressions (MDX) to retrieve and handle data from dimensions and cubes, you can use MDX to update or writeback dimension and cube data. These updates can be temporary, as with speculative, or "what if", analysis, or permanent, as when changes must occur based upon data analysis.

Updates to data can occur at the dimension or cube level:

Dimension writebacks
You use the ALTER CUBE Statement (MDX) statement to change a write-enabled dimension's data and the REFRESH CUBE Statement (MDX) to reflect the deletion, creation, and updating of attribute values. You can also use the ALTER CUBE statement to perform complex operations, such as deleting a whole sub-tree in a hierarchy and promoting the children of a deleted member.

Cube writebacks
You use the UPDATE CUBE statement to make updates to a write-enabled cube. The UPDATE CUBE statement lets you update a tuple with a specific value. You use the REFRESH CUBE Statement (MDX) to refresh data in a client session with updated data from the server.

For more information, see Using Cube Writebacks (MDX).

See Also

MDX Query Fundamentals (Analysis Services)