Solved

Permissions problem

Posted on 2002-04-14
3
116 Views
Last Modified: 2010-05-02
I am attemptimg to do a web app for the first time & need to get data from an access db.  Actually, I wanted to use mySQL, but our buddy Bill won't let the ODBC work with the standard edition.

On NT2000 I get this error:

The Microsoft Jet database engine cannot open the file 'D:\Inetpub\wwwroot\WebApplication1\Restaurant.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

What do I need to set?
0
Comment
Question by:castello
3 Comments
 
LVL 33

Accepted Solution

by:
hongjun earned 50 total points
ID: 6939747
Make sure the mdb file is not opened. Close it. Also make sure IUSR_COMPUTERNAME has permission on the mdb file.

hongjun
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6940563
Also, take note that you not have this file open it in design mode in other session.
0
 

Expert Comment

by:clangl
ID: 6940928
THis error usually occurs when you have security set up with in the access database and the *.mdw is not refernced to the correct location in the connection string.  In this case you need to refernce the mdw database in your connection string:

"Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & strLocFilDB & ";Jet OLEDB:System database=" & strlocSystemDB & ";User ID= '" & strUsr & "';Password='" & strPwd & "'"
strLocFilDB is the location of the actual database
strlocSystemDB is the location of the MDW database

Hope this helps
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

744 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

9 Experts available now in Live!

Get 1:1 Help Now