Solved

MS Access 2010 Linked SQL Server Tables in Named Schema

Posted on 2012-04-09
2
780 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 15

Accepted Solution

by:
deepakChauhan earned 500 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now