Linked server dynamic catalog for executing MDX through OpenQuery
问题 I have multiple OLAP databases in my project, so is it possible to dynamically decide the catalog for executing this MDX query? SELECT * FROM OpenQuery(OLAP_SERVER, 'WITH MEMBER measures.X AS dimensions.count SELECT Measures.X ON 0 FROM MyCube') as X I don't want to create a separate linked server for each of the OLAP database. Both the relational and cube databases reside on the same physical machine. My linked server configuration are: EXEC master.dbo.sp_addlinkedserver @server = N'OLAP