I have a problem using openquery. i want to select the column with it's name but the name is too long because there are much levels
SELECT
A."[Dimension].[NAMEOFLEVEL1].[NAMEOFLEVEL2].[NAMEOFLEVEL3].[NAMEOFLEVEL4].[NAMEOFLEVEL5].[NAMEOFLEVEL6]" AS Acc2
FROM OPENQUERY(CUBEX,
'SELECT
({
[Dimension].[NAMEOFLEVEL1].[NAMEOFLEVEL2].[NAMEOFLEVEL3].[NAMEOFLEVEL4].[NAMEOFLEVEL5].[NAMEOFLEVEL6]
}) DIMENSION PROPERTIES MEMBER_KEY
ON COLUMNS,
NON EMPTY (
[TIME].[MONTH]
) DIMENSION PROPERTIES MEMBER_KEY
ON ROWS
FROM [MyTable]
') A
the error is as follow :
The identifier that starts with '[Dimension].[NAMEOFLEVEL1].[NAMEOFLEVEL2].[NAMEOFLEVEL3].[NAMEOFLEVEL4].[NAMEOFLEVEL5].[NAMEOFLEVEL6]' is too long. Maximum length is 128.