Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CALL Statement (MDX)

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

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

   [ (SP_Argument 
      [, SP_Argument ,...n]
      ) ] 


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


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


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

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 Note

If the stored procedure is not registered on the client, the CALL statement attempts to call the stored procedure from an instance of Microsoft SQL Server Analysis Services.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft