“Invalid column name” error on SQL statement from OpenQuery results

前端 未结 4 848
不思量自难忘°
不思量自难忘° 2020-12-18 18:25

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,         


        
4条回答
  •  执念已碎
    2020-12-18 19:05

    Oh, bummer. I just saw, you select AS FOO. Don't you need a HAVING claus in this case?

    SELECT whatever AS value FROM table HAVING value > 1;
    

    I still would not use "value". But to be sure, look it up in your docs!

提交回复
热议问题