dbTalk Databases Forums  

OPENQUERY - Access denied

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss OPENQUERY - Access denied in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Renato
 
Posts: n/a

Default OPENQUERY - Access denied - 03-06-2006 , 08:22 PM






I am unable to use OPENQUERY to a SQL 2005 OLAP server (RTM).
The actual query is very simple and works fine from management studio
on AS9.
I am a server administrator and logged directly onto server using
management studio against SQL2005 executing openquery against a linked
server to AS9 on same server.
A strange thing is that the profiler shows execution activity on AS9
and no errors. Also no errors appear in event viewer.

Here is the query:
SELECT *
FROM OPENQUERY(OLAP_SERVER, 'select [Measures].[Sales] on 0 from
sales')


Here is the error returned:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "MSOLAP" for linked server "OLAP_SERVER" reported
an error. Access denied.
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "MSOLAP" for
linked server "OLAP_SERVER".


Here is the script to create the linked server:
USE [master]
GO
EXEC master.dbo.sp_addlinkedserver @server = N'OLAP_SERVER',
@srvproduct=N'MSOLAP', @provider=N'MSOLAP',
@datasrc=N'wrypgpvmw06.apac.pfizer.com', @catalog=N'SalesReporting'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'data
access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'rpc', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'rpc
out', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'use
remote collation', @optvalue=N'true'
GO
USE [master]
GO
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'OLAP_SERVER',
@locallogin = NULL , @useself = N'True'
GO


Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: OPENQUERY - Access denied - 03-07-2006 , 12:15 PM






starts the surface area tool.
Openquery is not authorized by default, you have to change the config to
allow it.


"Renato" <renato_buda (AT) iprimus (DOT) com.au> wrote

Quote:
I am unable to use OPENQUERY to a SQL 2005 OLAP server (RTM).
The actual query is very simple and works fine from management studio
on AS9.
I am a server administrator and logged directly onto server using
management studio against SQL2005 executing openquery against a linked
server to AS9 on same server.
A strange thing is that the profiler shows execution activity on AS9
and no errors. Also no errors appear in event viewer.

Here is the query:
SELECT *
FROM OPENQUERY(OLAP_SERVER, 'select [Measures].[Sales] on 0 from
sales')


Here is the error returned:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "MSOLAP" for linked server "OLAP_SERVER" reported
an error. Access denied.
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "MSOLAP" for
linked server "OLAP_SERVER".


Here is the script to create the linked server:
USE [master]
GO
EXEC master.dbo.sp_addlinkedserver @server = N'OLAP_SERVER',
@srvproduct=N'MSOLAP', @provider=N'MSOLAP',
@datasrc=N'wrypgpvmw06.apac.pfizer.com', @catalog=N'SalesReporting'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'data
access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'rpc', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'rpc
out', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'use
remote collation', @optvalue=N'true'
GO
USE [master]
GO
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'OLAP_SERVER',
@locallogin = NULL , @useself = N'True'
GO




Reply With Quote
  #3  
Old   
Renato
 
Posts: n/a

Default Re: OPENQUERY - Access denied - 03-10-2006 , 02:05 AM



The one that would not work for me is OPENQUERY.
The one that needs enabling is OPENROWSET and OPENNDATASOURCE.

I did not touch my server for a few days as I was working on other
things.
In the meantime the server was rebooted for maintenance.
I tried the query tonight and - amazement - it is now working!.

I dont know what to think, except I sure would like a tool that can
get under the hood and let me see what Kerberos is doing.

Jéjé wrote:
Quote:
starts the surface area tool.
Openquery is not authorized by default, you have to change the config to
allow it.


"Renato" <renato_buda (AT) iprimus (DOT) com.au> wrote in message
news:1141698138.928526.215420 (AT) p10g2000cwp (DOT) googlegroups.com...
I am unable to use OPENQUERY to a SQL 2005 OLAP server (RTM).
The actual query is very simple and works fine from management studio
on AS9.
I am a server administrator and logged directly onto server using
management studio against SQL2005 executing openquery against a linked
server to AS9 on same server.
A strange thing is that the profiler shows execution activity on AS9
and no errors. Also no errors appear in event viewer.

Here is the query:
SELECT *
FROM OPENQUERY(OLAP_SERVER, 'select [Measures].[Sales] on 0 from
sales')


Here is the error returned:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "MSOLAP" for linked server "OLAP_SERVER" reported
an error. Access denied.
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "MSOLAP" for
linked server "OLAP_SERVER".


Here is the script to create the linked server:
USE [master]
GO
EXEC master.dbo.sp_addlinkedserver @server = N'OLAP_SERVER',
@srvproduct=N'MSOLAP', @provider=N'MSOLAP',
@datasrc=N'wrypgpvmw06.apac.pfizer.com', @catalog=N'SalesReporting'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'data
access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'rpc', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'rpc
out', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'use
remote collation', @optvalue=N'true'
GO
USE [master]
GO
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'OLAP_SERVER',
@locallogin = NULL , @useself = N'True'
GO



Reply With Quote
  #4  
Old   
VBeliaev
 
Posts: n/a

Default Re: OPENQUERY - Access denied - 03-10-2006 , 01:19 PM



Try to set Allow InProcess option in linked server provider options

Vladislav Beliaev

Renato пиÑал(а):

Quote:
The one that would not work for me is OPENQUERY.
The one that needs enabling is OPENROWSET and OPENNDATASOURCE.

I did not touch my server for a few days as I was working on other
things.
In the meantime the server was rebooted for maintenance.
I tried the query tonight and - amazement - it is now working!.

I dont know what to think, except I sure would like a tool that can
get under the hood and let me see what Kerberos is doing.

Jéjé wrote:
starts the surface area tool.
Openquery is not authorized by default, you have to change the config to
allow it.


"Renato" <renato_buda (AT) iprimus (DOT) com.au> wrote in message
news:1141698138.928526.215420 (AT) p10g2000cwp (DOT) googlegroups.com...
I am unable to use OPENQUERY to a SQL 2005 OLAP server (RTM).
The actual query is very simple and works fine from management studio
on AS9.
I am a server administrator and logged directly onto server using
management studio against SQL2005 executing openquery against a linked
server to AS9 on same server.
A strange thing is that the profiler shows execution activity on AS9
and no errors. Also no errors appear in event viewer.

Here is the query:
SELECT *
FROM OPENQUERY(OLAP_SERVER, 'select [Measures].[Sales] on 0 from
sales')


Here is the error returned:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "MSOLAP" for linked server "OLAP_SERVER" reported
an error. Access denied.
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "MSOLAP" for
linked server "OLAP_SERVER".


Here is the script to create the linked server:
USE [master]
GO
EXEC master.dbo.sp_addlinkedserver @server = N'OLAP_SERVER',
@srvproduct=N'MSOLAP', @provider=N'MSOLAP',
@datasrc=N'wrypgpvmw06.apac.pfizer.com', @catalog=N'SalesReporting'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'data
access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'rpc', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'rpc
out', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER',
@optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'OLAP_SERVER', @optname=N'use
remote collation', @optvalue=N'true'
GO
USE [master]
GO
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname = N'OLAP_SERVER',
@locallogin = NULL , @useself = N'True'
GO



Reply With Quote
  #5  
Old   
Renato
 
Posts: n/a

Default Re: OPENQUERY - Access denied - 03-13-2006 , 03:59 PM



Thanks - I did set that earlier. Perhaps it needed a restart as well
because it seemed to start working after the machine was rebooted.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.