A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Permission denied" when linked to SQL server via ODBC!!!?



 
 
Thread Tools Display Modes
  #1  
Old August 25th, 2005, 12:13 PM
J. Kando 411
external usenet poster
 
Posts: n/a
Default "Permission denied" when linked to SQL server via ODBC!!!?

HI!

I have the regular split in my Access 2000 application: The application in
one file and the data in another. All tables are linked. At least this is how
it is when I work locally. When the application is on the network/(in
production) the tables are in SQL Server and linked via ODBC.

The application works fine when I work locally, but on the network I get
‘Runtime error ‘70’: Permission Denied’ when I try to run this statement:

Set db = CurrentDB ‘ have: dim db as DAO.Database

(tried both DAO.Database and Database)

(Same error on:
Set qdf = CurrentDb.CreateQueryDef("") ‘Dim qdf As QueryDef
)


The user granted rights to all tables in the sqlserver is the same granted
rights to access the database for the ODBC connection.

Does anybody have any idea what the error could be?


Thanks,
J.K.

  #2  
Old August 25th, 2005, 01:10 PM
J. Kando 411
external usenet poster
 
Posts: n/a
Default

We solved it. The ODBC didn't connect to the SQL Server with a user that had
all rights to the tables in the SQL Server.

This is how it is right no (if anyone care :- ):
An user is created in the sql server. Let's call her 'User1'. User1 has all
rights to all tables. An odbc connection is created on another server and
connects to the database with User1's username and password. All connection
from the application to the tables are now done as 'User1'. All security is
in the application. There are several other ways to do this. This works for
us. Bye :- )
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to insert record to Access via SQL from an ASP page Norman Yuan General Discussion 1 February 2nd, 2005 08:23 PM
How do I change the SQL server for Access ADP? [email protected] General Discussion 2 January 14th, 2005 02:23 PM
Different mdac, different SQL server behaviour Tony Epton General Discussion 1 December 22nd, 2004 05:00 PM
Business Contact Manager 2003 Nevin Installation & Setup 3 August 1st, 2004 09:41 PM
Useless Access 2003 tired, angry, sucidial and bored General Discussion 10 July 21st, 2004 11:52 PM


All times are GMT +1. The time now is 04:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.