473,564 Members | 2,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem connecting to Access Database - "already opened exclusively by another user"

Hi

I am trying to create a webform that connects to an Access database.

If I use the connection string:
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=C:\Gizmo \Gizmo.mdb"
Then the application connects to the database and downloads data fine but
when I try to fire an Update command I get the following error:
"Problem firing System.Data.Ole Db.OleDbCommand - Operation must use an
updateable query"

If I change the connection string to:
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=C:\Gizmo \Gizmo.mdb;Mode =3"
Then the application will not even connect to the database and I get the
following error:
"The Microsoft Jet database engine cannot open the file
'C:\Gizmo\Gizmo VIII.mdb'. It is already opened exclusively by another user,
or you need permission to view its data"

I have already gone into Computer Management and made the IUSR_TOMWILD user
a member of Administrators but I am still getting the above errors.

My questions are as follows:
Am I correct in assuming that adding ";Mode=3" to the connection string is
giving me write access to the database but that I don't have sufficient
permissions to have this access?
How do I get such access for my webform?
I found an article in the Microsoft Knowledge Base which seems to address
this problem http://support.microsoft.com/default...;EN-US;Q316675
Unfortunately it suggests that I either "Configure the ASP.NET worker
process to run under the SYSTEM account in the <processModel > section of the
Machine.config file." or "enable impersonation on your ASP.NET application"
and I don't know how to do either of these. Will either of these solve my
problem and how do I do them?
Other articles suggest that I need to ensure that the database directory and
the database and my temp directory are all set so that IUSR_TOMWILD can
read/write to them. How do I do this?

Sorry for the extra-long question.

Thanks

Tom Wild


Nov 17 '05 #1
1 3475
Make sure the Access file is not ReadOnly.

KS
http://www.nAlliance.com

"Tom Wild" <tw***@lightkni ghts.com> wrote in message
news:eF******** ******@TK2MSFTN GP09.phx.gbl...
Hi

I am trying to create a webform that connects to an Access database.

If I use the connection string:
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=C:\Gizmo \Gizmo.mdb"
Then the application connects to the database and downloads data fine but
when I try to fire an Update command I get the following error:
"Problem firing System.Data.Ole Db.OleDbCommand - Operation must use an
updateable query"

If I change the connection string to:
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=C:\Gizmo \Gizmo.mdb;Mode =3"
Then the application will not even connect to the database and I get the
following error:
"The Microsoft Jet database engine cannot open the file
'C:\Gizmo\Gizmo VIII.mdb'. It is already opened exclusively by another user, or you need permission to view its data"

I have already gone into Computer Management and made the IUSR_TOMWILD user a member of Administrators but I am still getting the above errors.

My questions are as follows:
Am I correct in assuming that adding ";Mode=3" to the connection string is
giving me write access to the database but that I don't have sufficient
permissions to have this access?
How do I get such access for my webform?
I found an article in the Microsoft Knowledge Base which seems to address
this problem http://support.microsoft.com/default...;EN-US;Q316675 Unfortunately it suggests that I either "Configure the ASP.NET worker
process to run under the SYSTEM account in the <processModel > section of the Machine.config file." or "enable impersonation on your ASP.NET application" and I don't know how to do either of these. Will either of these solve my
problem and how do I do them?
Other articles suggest that I need to ensure that the database directory and the database and my temp directory are all set so that IUSR_TOMWILD can
read/write to them. How do I do this?

Sorry for the extra-long question.

Thanks

Tom Wild

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1726
by: Shannon Rotz | last post by:
I have a database split into front-end, back-end, on a machine running Windows XP professional (no network, just a single machine). I just upgraded the database from Access 97 to Access 2000. The machine has 3 users logging into the machine, one of which is the Administrator. In addition, I have activated the Access security, with the same...
2
2640
by: caradhras | last post by:
I've been troubleshooting for a friend's charity. She wants their database accessible from both their PCs (I'll call them A & B), which are on a local network, both running A2K on Windows 98. I manually split the DB into a front & back end, and placed the backend in a shared folder on computer A. Made sure the shared folder was set to "full...
0
2267
by: Tom Wild | last post by:
Hi I am trying to connect to an Access database from a WebPage in VB.Net but when I try to open the connection I get the following error: The Microsoft Jet database engine cannot open the file 'C:\Test03\Test03.mdb'. It is already opened exclusively by another user, or you need permission to view its data My connection string is as...
0
2004
by: damontimm | last post by:
My setup: Mac OS 10.4.4; mysql 4.x ... everything was installed and working fine for some time. Today, I added drupal to my system and had to create a new database in mysql -- now I am having some problems. I will outline the problem, what I have tried to do to fix it, and what I think caused it. Hope you can help and I am sorry this is long....
0
6683
by: godsmustbcrazy | last post by:
Here is my problem. Brand new SQL Server 2005 Installation 1. Create a database "Test" 2. Create a database user "Domain\user" and set user mapping to "Test" with datareader, datawriter permissions 3. Look at Test ->Properties->Permissions activate "Domain\user" and click effective permissions and I get this error message
1
9943
by: dwasler | last post by:
Try every thing I know to remove this alias I know there been other posting I read each one none seem to work. Thank You DLWasler dwasler@yahoo.com OS Window db2 V 8.2.X
5
6910
by: WP | last post by:
Hello, I need to communicate with a db2 database from a java program and this java program needs to check which "user tables" there are. I came up with the following query which I tried in Control Center: select tabname, tabschema from syscat.tables where tabschema != 'SYSCAT' and tabschema != 'SYSIBM' and tabschema != 'SYSIBMADM' and...
11
5035
by: Jan | last post by:
Hi: Here's a problem I've had for a long time. The client is really running out of patience, and I have no answers. Access2003, front- and back-end. Single form with 4 subforms (each representing a related table), 5-10 clerks doing data entry at one time. Tables are quite large but all work is done with unbound forms and/or local...
11
4999
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the database, in in both VB6 and VB.NET applications, I got the error "The Microsoft Jet database engine cannot find the input table or query...
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.