Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

To Use OPENROWSET by SQL user without sysadmin role Expand / Collapse
Author
Message
Posted Friday, August 16, 2013 2:36 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, September 8, 2014 11:14 AM
Points: 21, Visits: 129
Hi all,

I need to know if are there a way to use OPENROWSET by a SQL user without sysadmin role?

We have the problem below when the SQL user perform a quey with OPENROWSET, however when perform with sysadmin role the result when come back it is correct.

Msg 7415, Level 16, State 1, Line 1
Ad hoc access to OLE DB provider 'IBMDA400' has been denied. You must access this provider through a linked server.

Our enviroment:
Windows Server 2008 R2 64bits
SQL Server 2008 R2 64bits
AddhocRemoteQuerysEnabled is True

Could someone help us, please.

Regards,

Antonio Estima
Post #1485377
Posted Friday, August 16, 2013 3:53 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, September 15, 2014 4:57 AM
Points: 802, Visits: 717
I would guess that if you goto Object Explorer -> Security -> Linked Servers -> Providers -> IBMDA400 and right-click and select properties, you will find that Disallow adhoc access is checked for this provider.

Erland Sommarskog, SQL Server MVP, www.sommarskog.se
Post #1485399
Posted Friday, August 16, 2013 4:42 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, September 8, 2014 11:14 AM
Points: 21, Visits: 129
Dear Erland,

I have cheked it, however It has not checked
Regards,

Antonio Estima
Post #1485417
Posted Saturday, August 17, 2013 3:31 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, September 15, 2014 4:57 AM
Points: 802, Visits: 717
I was able to run OPENROWSET with a non-priv user, but I don't have access to the IBMDA400 provider, and this may be a restriction related to that provider. Is it set to allow inprocess?

Why can't you use a linked server?


Erland Sommarskog, SQL Server MVP, www.sommarskog.se
Post #1485463
Posted Saturday, August 17, 2013 4:56 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, September 8, 2014 11:14 AM
Points: 21, Visits: 129
Dear Erland,

I checked the allow inprocess, but didn't ran correct. About to use linked server, may be not, because the developer team receaved this application with OPENROWSET and the change cost its very high to them.

But I going to talk to them about this idea.

Regards,

Antonio
Post #1485469
Posted Monday, August 19, 2013 10:27 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, September 8, 2014 11:14 AM
Points: 21, Visits: 129
Hi All,

Has someone another idea different of linked server?

Regards,

Antonio
Post #1485891
Posted Monday, August 19, 2013 4:09 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, September 15, 2014 4:57 AM
Points: 802, Visits: 717
Well, distributed queries, even more distributed transactions, often causes pain, so there is all reason to avoid them if you can. But if your developers have painted them so much into a corner that chaning from OPENROWSET to OPENQUERY is expensive, your prospects are bleak, since not using distributed queries at all, means a radical change in application architecture.

The problem in your case is that are using a provider that not very many here uses, and therefore it is difficult to help you. Maybe you should open a case with Microsoft. Or with IBM, if the problem is with the OLE OB provider.


Erland Sommarskog, SQL Server MVP, www.sommarskog.se
Post #1486046
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse