![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have Sql / Analysis Server 2005 installed on server, i'm trying to run MDX query from sql server using OpenQuery or OpenRowSet function, i setup the Linked server /* Add new linked server */ EXEC sp_addlinkedserver @server='LINKED_OLAP', -- local SQL name given to the linked server @srvproduct='', -- not used @provider='MSOLAP.3', -- OLE DB provider (the .2 means the SQL2K version) @datasrc='VNUMRKCENS01', -- analysis server name (machine name) @catalog='LBL2' -- default catalog/database GO and then run mdx query like: SELECT * FROM OPENQUERY(LINKED_OLAP,'select { [Measures].[Dollars], [Measures].[Units]} on columns from [Census]') on runing this query get following error msg: Server: Msg 7302, Level 16, State 1, Line 1 Could not create an instance of OLE DB provider 'MSOLAP'. OLE DB error trace [Non-interface error: CoCreate of DSO for MSOLAP returned 0x80040154]. Any clue, please answer in detail. Regards - Hasan |
#3
| |||
| |||
|
|
sp_addlinkedserver does not set the allow-inprocess setting on the provider, which the MSOLAP provider requires in order to work. Open up SSMS and from your server navigate down to Server Objects > Linked Servers > Providers Double click on the MSOLAP provider and in the properties window that appears, turn on the setting for "Allow inprocess". I think this setting will take effect immediately, if not, you might need to stop and start the SQL Server service. -- Regards Darren Gosbell - SQL Server MVP Blog: http://www.geekswithblogs.net/darrengosbell In article <B1000CE2-581B-401F-BB3B-3A32167D8534 (AT) microsoft (DOT) com>, Hasan (AT) discussions (DOT) microsoft.com says... Hi, I have Sql / Analysis Server 2005 installed on server, i'm trying to run MDX query from sql server using OpenQuery or OpenRowSet function, i setup the Linked server /* Add new linked server */ EXEC sp_addlinkedserver @server='LINKED_OLAP', -- local SQL name given to the linked server @srvproduct='', -- not used @provider='MSOLAP.3', -- OLE DB provider (the .2 means the SQL2K version) @datasrc='VNUMRKCENS01', -- analysis server name (machine name) @catalog='LBL2' -- default catalog/database GO and then run mdx query like: SELECT * FROM OPENQUERY(LINKED_OLAP,'select { [Measures].[Dollars], [Measures].[Units]} on columns from [Census]') on runing this query get following error msg: Server: Msg 7302, Level 16, State 1, Line 1 Could not create an instance of OLE DB provider 'MSOLAP'. OLE DB error trace [Non-interface error: CoCreate of DSO for MSOLAP returned 0x80040154]. Any clue, please answer in detail. Regards - Hasan |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |