Advertisement

07.01.2008 at 01:55AM PDT, ID: 23529426
[x]
Attachment Details

Select Permission Denied error

Asked by ipendlebury in Microsoft Access Database, MS SQL Server, SQL Query Syntax

Tags: , ,

This is an Access 2000 database with a SQL Server 2000 back end. Up until now the database has been unsecured with everyone logging in as admin. Last week, I gave the Admin user a password, and created user accounts for everyone. Then I assigned permissions on all the database objects. All the users are members of the 'Users' group. So it is this group that I restricted the permissions on.

I have some DSNless queries which have the SQL Server connect string held in the 'Connect property'. What I am finding is that everyone except me was a getting a 'Select permission denied' error when their application attempts to open any of these DNSless queries. I can open them myself without a problem. I found this strange because everyone, including myself is opening the queries with the same SQL Server credentials. The only difference is that my user account has Administer permissions on these queries. The Users group has modify permissions, because my application sometimes modifies the SQL string.

I have found now that if I give the Users group administer permissions on my DSNless queries, then the problem goes away.  Can anyone explain this please?

Ian

Edit: I am now finding that there is an eratic element to this. Sometimes assigning adminster permissions fixes the problem. Sometimes it doesn't. Wierd!

Another Edit. I edited my code so that it put the Connect string into a MsgBox immediately before opening the query. Everything looked fine, then I got the "Select permission denied" error again.

Third Edit: After initially finding that adminster permissions would allow my users to open these objects, They cannot open them at all now no matter what I do.

Start Free Trial
[+][-]07.01.2008 at 05:27AM PDT, ID: 21906960

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 06:54AM PDT, ID: 21907803

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 02:21PM PDT, ID: 21911744

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 07:58PM PDT, ID: 21913110

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, MS SQL Server, SQL Query Syntax
Tags: Microsoft, Access, 2000
Sign Up Now!
Solution Provided By: mark_wills
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.02.2008 at 01:50AM PDT, ID: 21914469

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 09:05AM PDT, ID: 21917848

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628