SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


To Use OPENROWSET by SQL user without sysadmin role


To Use OPENROWSET by SQL user without sysadmin role

Author
Message
antonio.estima 4150
antonio.estima 4150
SSC Journeyman
SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)

Group: General Forum Members
Points: 99 Visits: 165
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
Erland Sommarskog
Erland Sommarskog
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2125 Visits: 872
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
antonio.estima 4150
antonio.estima 4150
SSC Journeyman
SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)

Group: General Forum Members
Points: 99 Visits: 165
Dear Erland,

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

Antonio Estima
Erland Sommarskog
Erland Sommarskog
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2125 Visits: 872
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
antonio.estima 4150
antonio.estima 4150
SSC Journeyman
SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)

Group: General Forum Members
Points: 99 Visits: 165
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
antonio.estima 4150
antonio.estima 4150
SSC Journeyman
SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)SSC Journeyman (99 reputation)

Group: General Forum Members
Points: 99 Visits: 165
Hi All,

Has someone another idea different of linked server?

Regards,

Antonio
Erland Sommarskog
Erland Sommarskog
SSCrazy
SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)SSCrazy (2.1K reputation)

Group: General Forum Members
Points: 2125 Visits: 872
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search