Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MS Access 2010 Linked SQL Server Tables in Named Schema

Posted on 2012-04-09
2
Medium Priority
?
802 Views
Last Modified: 2012-04-09
Our MS Access 2010 database uses linked SQL Server 2008 tables which are in named schemas.  Users are granted rights through a Active Directory security group, the secruity group has been granted access as:  Server Roles=public;  User Mappings: db_datareader, db_datawriter, public; no securables.  The longest linked table name is 41 characters (HumanResources.EmployeeAppointmentHistory)

Tested users rights driectly within SSMS with out issues.
The linked tables in ms access are schema_tablename

Error Message in MS Access
[Microsoft][SQL Server Native Client 10.0][SQL Server]The INSERT permission was denied on the object “EmployeeAppointmentHistory “, database “<DatabaseName> “, schema “HumanResources “. (#229)

I remember reading somewhere about setting up Synomyns for all non-dbo schema objects, I have not tested that yet.
0
Comment
Question by:breckdahlin
2 Comments
 
LVL 16

Accepted Solution

by:
Deepak Chauhan earned 1500 total points
ID: 37824527
Hi, this is only permission issue on humanresures schema and you need to grant onlyinsert rights to username

use this
: Grant select, insert on schema::humnaresources to username;

but please ensure you have database owner or admin rights to grant and revoke permissions.
0
 

Author Comment

by:breckdahlin
ID: 37824674
The active directory security group has (select, insert, execute, update, delete) permissions on the schema.

What works is granting the user direct right to the schema verses granting those rights to a security group

i.e. <Domain>\UserName verses <Domain>\,<SecurityGroup> of which the user is a member.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question