Avatar of CSTX_Analysts
CSTX_Analysts
Flag for United States of America asked on

Problem with a linked server query and Active Directory User

We have a database that has a view with an openquery to a non-windows server running DB2.   The view works fine with AD users that are in the sysadmin role, but user in the public role for the server and dbo or datareader on the database get an access error.  The view also works fine with SQL users that are in the public role on the server and either dbo or datareader on the database level.  Please see the attached error message.

To my eye, this has to be an issue with running openquery on a non-windows server with AD user accounts.  I have looked around and can't find an answer.

We are running SQL server 2008 R2
Capture.JPG
Microsoft SQL Server 2008

Avatar of undefined
Last Comment
Vitor Montalvão

8/22/2022 - Mon
JestersGrind

This Microsoft article talks about how to setup permissions and includes that exact error message.  
http://support.microsoft.com/en-us/kb/2647989

Hope this helps,

Greg
CSTX_Analysts

ASKER
I made the changes to one of the client PCs that is experiencing the problem.  I got the following error.

"Msg 7302, Level 16, State 1, Procedure VW_wService, Line 9
Cannot create an instance of OLE DB provider "IBMDASQL" for linked server "HTE_LINK"."
JestersGrind

This article talks about that error.  The AllowInProcess option must be enabled.  
http://www-01.ibm.com/support/docview.wss?uid=nas8N1014412
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
JestersGrind

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Vitor Montalvão

CSTX_Analysts, do you need more help on this question?