Answered MDX Query Syntax problem

  • Thursday, July 05, 2012 2:45 PM
     
     

    Hi,

    May i know, what the problem,in this line of code

    CAST("[Customer].[Username].[Username].[MEMBER_CAPTION]" AS VARCHAR(100)) AS UserName,

    Executing the query ...
    Query (5, 78) Parser: The syntax for 'UserName' is incorrect.


    Pachi

All Replies

  • Thursday, July 05, 2012 3:06 PM
     
     Answered

    Hello,

    CAST is a T-SQL function, not a MDX one; also the rest like datatype and alias is T-SQL


    Olaf Helper
    * cogito ergo sum * errare humanum est * quote erat demonstrandum *
    Wenn ich denke, ist das ein Fehler und das beweise ich täglich
    Blog Xing

    • Marked As Answer by Prashanth.P Thursday, July 05, 2012 4:17 PM
    •