Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Permissions for view based on Linked Server


Permissions for view based on Linked Server

Author
Message
peteroc
peteroc
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 306
Hi,
I have an access 2010 adp linked to SQL 2008 r2.
Another system we use which also has a sql backend hold employee id's and names . I want to use this employee data in our main sytem so I've set up a linked server - and a view based on this.
I've given db users select permissions on the view but they're receiving the error message: "<access db name> could not log on to the server. Verify that the log on information is correct."
Sql is set up to use windows authentication. The linked server is impersonating my log in.
Any ideas on how to resolve this?

Thanks,
Peter
WendellB
WendellB
SSC Veteran
SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)

Group: General Forum Members
Points: 247 Visits: 1634
Can you clarify what you mean by a linked server? Is that being done at the SQL Server level so that the view shows up in the SQL database where your application tables are stored? Or are you doing something with ODBC links? I should also add that the ADP model is not supported in the current (2013) version of Access, so you may want to rethink your architecture if this is a new development.

Wendell
Colorful Colorado
You can't see the view if you don't climb the mountain!
peteroc
peteroc
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 306
By linked server I'm on about a linked server object set up on SQL Server with:

Exec sp_addlinkedserver N'<server name>', N'SQL Server';
EXEC sp_addlinkedsrvlogin '<server name>'

The view is set up on sql server with:

SELECT EmployeeCode, LastName, FirstNames, WorkAreaCode, LocationCode, DepartmentCode
FROM <server name>.<dbname>.<schema>.<table> AS EMPLOYEE_1

I've given select permissions on the view to a bespoke database role.

I've set up one user with login permissions on the remote server (as a test).

within the adp the view is visible similar to a linked table but it just wont open up.

I hope that clarify's things a little - my goal in all of this is to have the employees table from one system visible on the other so we only need to maintain the records in one place.

As for the adp's being deprecated; yep it's been on the cards for a while. It's days are numbered. There's a big job ahead changing formats.
Thanks for your help,
Peter
WendellB
WendellB
SSC Veteran
SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)SSC Veteran (247 reputation)

Group: General Forum Members
Points: 247 Visits: 1634
Since you are using Integrated Security, as long as you have permissions set both on the linked view in your local database, and on the view in the remote database, I would expect you should be able to open the view in the Access Data Project. As a test you could try linking the view into an empty .mdb database using ODBC, and see if you can open it that way. If not then I would expect to to be an issue with permissions at the SQL level. You could also try opening an ADO connection to that view in the remote database and see if that works.

Wendell
Colorful Colorado
You can't see the view if you don't climb the mountain!
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