我正在使用以下代码在 SSMS 中创建一个命名集:
WITH SET [American WWII Figures] AS
'{[American GI], [US Army Pilot]}'
我得到了回应:
Executing the query ...
Parser: The end of the input was reached.
Execution complete
该查询是否成功执行?
然后当我尝试使用命名集时:
SELECT {[American WWII Figures]} ON COLUMNS,
[Year].Members ON ROWS
FROM [Max Min Manufacturing DM]
WHERE [Measures].[Total Products]
我得到:
Executing the query ...
Query (1, 9) The dimension '[American WWII Figures]' was not found in the cube
when the string, [American WWII Figures], was parsed.
执行完成
由于它似乎不存在,我猜我创建集合时出了点问题。可能是什么错误?