I\'m trying to perform a SQL query through a linked SSAS server. The initial query works fine:
SELECT \"Ugly OLAP name\" as \"Value\"
FROM OpenQuery( OLAP,
This should work:
SELECT A.Value
FROM (
SELECT "Ugly OLAP name" as "Value"
FROM OpenQuery( OLAP, 'OLAP Query')
) AS a
WHERE a.Value > 0
It's not that Value is a reserved word, the problem is that it's a column alias, not the column name. By making it an inline view, "Value" becomes the column name and can then be used in a where clause.