Hi,I have a problem with retrieving the ALL member.With MDX executed from SSMS, it returns the 'All' value into a column, but executed from SQL with linked server, it doesn't return a column with 'All'.MDX:SELECT NON EMPTY( { [Customer].[Customer ID].[ALL] }) ON ROWS, {[Measures].[Fact Count] } ON COLUMNSFROM [SalesCube]--> Result OK, 2 columns.SQL:SELECT * FROM OPENQUERY(OLAP_DWH, 'SELECT NON EMPTY( { [Customer].[Customer ID].[ALL] }) ON ROWS, {[Measures].[Fact Count] } ON COLUMNSFROM [SalesCube]')--> Result only returns 1 column. The column with the 'All' isn't displayed.Linked server: @server = N'OLAP_DWH', @srvproduct=N'OLAP', @provider=N'MSOLAP'The real problem is: I want to store the results into a table, and the same procedure sometimes is used for the 'All' customers, sometimes for only 1 customer.Does someone know a solution to always have the Customer column into the resultset when executed with linked server?Thanks.
↧