Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.81 KB

File metadata and controls

50 lines (36 loc) · 1.81 KB
title CALL Statement (MDX) | Microsoft Docs
ms.date 06/04/2018
ms.prod sql
ms.technology analysis-services
ms.custom mdx
ms.topic reference
ms.author owend
ms.reviewer owend
author minewiskan

MDX Data Manipulation - CALL

Runs a stored procedure that returns a void either in the current scope or optionally on a specified cube.

Syntax

  
CALL SP_Name   
   [ (SP_Argument   
      [, SP_Argument ,...n]  
      ) ]   
[ONCube_Expression]  

Arguments

SP_Name
A valid string expression that provides the name of a stored procedure.

SP_Argument
A valid string expression that provides an argument to the called stored procedure.

Cube_Expression
A valid string cube expression providing the name of the cube.

Remarks

The CALL statement runs a specified registered stored procedure, optionally including one or more arguments for the specified stored procedure. The CALL statement is for use only with stored procedures that return voids. This statement cannot be combined with other functions or operators within an MDX expression. Registered stored procedures that return values can be called directly within MDX expressions and combined with other MDX functions and operators.

If a cube is not specified, the statement runs the stored procedure on the current cube.

Note

If the stored procedure is not registered on the client, the CALL statement attempts to call the stored procedure from an instance of [!INCLUDEssASnoversion].

See Also

MDX Data Manipulation Statements (MDX)
Using Stored Procedures (MDX)