473,379 Members | 1,257 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Read-Only Problem with Access Database

I've tried posting this in the 'microsoft.public.access' but I will post it
here also, as I think it might be the webserver which is causing my problem.
---------
I have an Access 2003 database which is in the "fpdb" folder of my
webserver. Its located there so that I can use asp to build a web-based
front-end for users to read the database -
http://www.nist.ac.th/maths/test1.asp

The MBD file is edited using Access (2003) and opening it through the UNC
path to the server. When we open it in Access to edit it, we get this error
message:
"The database 'NAME' is read-only.
You won't be able to save changes made to data or object definitions in the
database."

If I make a copy of the file (in the same folder or elsewhere) its ok.
If I restart the server the problem goes away for a few hours (is it a
"session" problem?).
If I try to delete or rename the file, I get the message that I cannot,
because "It is being used
by another person or program". However, if I check in 'Computer Management'
on the webserver the file is NOT open.

When I do open the file for editing, the OPEN MODE in Computer Management
shows the MDB file as "read" and the LDB file shows as "write+read".

Any ideas why this is happening?

Thanks,
Graham
Jul 22 '05 #1
7 12636
double check permissions on the folder.. not just the files in it.. (the
folder)
http://www.powerasp.com/content/new/...ermissions.asp

also make sure no other programs have the database opened exclusively

"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've tried posting this in the 'microsoft.public.access' but I will post
it here also, as I think it might be the webserver which is causing my
problem.
---------
I have an Access 2003 database which is in the "fpdb" folder of my
webserver. Its located there so that I can use asp to build a web-based
front-end for users to read the database -
http://www.nist.ac.th/maths/test1.asp

The MBD file is edited using Access (2003) and opening it through the UNC
path to the server. When we open it in Access to edit it, we get this
error
message:
"The database 'NAME' is read-only.
You won't be able to save changes made to data or object definitions in
the
database."

If I make a copy of the file (in the same folder or elsewhere) its ok.
If I restart the server the problem goes away for a few hours (is it a
"session" problem?).
If I try to delete or rename the file, I get the message that I cannot,
because "It is being used
by another person or program". However, if I check in 'Computer
Management'
on the webserver the file is NOT open.

When I do open the file for editing, the OPEN MODE in Computer Management
shows the MDB file as "read" and the LDB file shows as "write+read".

Any ideas why this is happening?

Thanks,
Graham

Jul 22 '05 #2
also, what your doing can get iffy in general
really not the best idea to be opening/editing an Access database live on a
webserver when asp code is also reading from it

but.. who knows.. I suppose it could work out trouble free but most likely
not as you are experiencing

"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've tried posting this in the 'microsoft.public.access' but I will post
it here also, as I think it might be the webserver which is causing my
problem.
---------
I have an Access 2003 database which is in the "fpdb" folder of my
webserver. Its located there so that I can use asp to build a web-based
front-end for users to read the database -
http://www.nist.ac.th/maths/test1.asp

The MBD file is edited using Access (2003) and opening it through the UNC
path to the server. When we open it in Access to edit it, we get this
error
message:
"The database 'NAME' is read-only.
You won't be able to save changes made to data or object definitions in
the
database."

If I make a copy of the file (in the same folder or elsewhere) its ok.
If I restart the server the problem goes away for a few hours (is it a
"session" problem?).
If I try to delete or rename the file, I get the message that I cannot,
because "It is being used
by another person or program". However, if I check in 'Computer
Management'
on the webserver the file is NOT open.

When I do open the file for editing, the OPEN MODE in Computer Management
shows the MDB file as "read" and the LDB file shows as "write+read".

Any ideas why this is happening?

Thanks,
Graham

Jul 22 '05 #3
Thanks. I've checked all permissions and they are correct.

As I said in my first message, if I reboot the webserver, the file is fine
for a few hours, then the same thing happens again. I checked it before I
left the office last night - fine. Nobody opened it in Access overnight.
This morning, can't edit it again.

The problem is only trying to open the file for editing in Access - the
web-based front end works fine all the time.

"Kyle Peterson" <kp*****@hotmail.com> wrote in message
news:uV*************@TK2MSFTNGP15.phx.gbl...
double check permissions on the folder.. not just the files in it.. (the
folder)
http://www.powerasp.com/content/new/...ermissions.asp

also make sure no other programs have the database opened exclusively

"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've tried posting this in the 'microsoft.public.access' but I will post
it here also, as I think it might be the webserver which is causing my
problem.
---------
I have an Access 2003 database which is in the "fpdb" folder of my
webserver. Its located there so that I can use asp to build a web-based
front-end for users to read the database -
http://www.nist.ac.th/maths/test1.asp

The MBD file is edited using Access (2003) and opening it through the UNC
path to the server. When we open it in Access to edit it, we get this
error
message:
"The database 'NAME' is read-only.
You won't be able to save changes made to data or object definitions in
the
database."

If I make a copy of the file (in the same folder or elsewhere) its ok.
If I restart the server the problem goes away for a few hours (is it a
"session" problem?).
If I try to delete or rename the file, I get the message that I cannot,
because "It is being used
by another person or program". However, if I check in 'Computer
Management'
on the webserver the file is NOT open.

When I do open the file for editing, the OPEN MODE in Computer Management
shows the MDB file as "read" and the LDB file shows as "write+read".

Any ideas why this is happening?

Thanks,
Graham


Jul 22 '05 #4
Good point - but I can't really think of a better way to do it. I'm not
prepared to put in the time to build a set of entry/modify asp front-end
screens for it, as only one or two people will ever edit it. I could copy
it off the webserver for editing and then upload it again, but, as a number
of the fields are hyperlinks to documents on the webserver, it makes it
difficult creating them when the mdb file is in a different location.

"Kyle Peterson" <kp*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
also, what your doing can get iffy in general
really not the best idea to be opening/editing an Access database live on
a webserver when asp code is also reading from it

but.. who knows.. I suppose it could work out trouble free but most likely
not as you are experiencing

"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've tried posting this in the 'microsoft.public.access' but I will post
it here also, as I think it might be the webserver which is causing my
problem.
---------
I have an Access 2003 database which is in the "fpdb" folder of my
webserver. Its located there so that I can use asp to build a web-based
front-end for users to read the database -
http://www.nist.ac.th/maths/test1.asp

The MBD file is edited using Access (2003) and opening it through the UNC
path to the server. When we open it in Access to edit it, we get this
error
message:
"The database 'NAME' is read-only.
You won't be able to save changes made to data or object definitions in
the
database."

If I make a copy of the file (in the same folder or elsewhere) its ok.
If I restart the server the problem goes away for a few hours (is it a
"session" problem?).
If I try to delete or rename the file, I get the message that I cannot,
because "It is being used
by another person or program". However, if I check in 'Computer
Management'
on the webserver the file is NOT open.

When I do open the file for editing, the OPEN MODE in Computer Management
shows the MDB file as "read" and the LDB file shows as "write+read".

Any ideas why this is happening?

Thanks,
Graham


Jul 22 '05 #5
There are applications of applications out there both free and pay... that
can create all the asp pages needed to edit a database quickly. They
basically are wizards that look at your database strucure and write generic
code to edit/save/add info.

I would search for some of those possibly.
"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Good point - but I can't really think of a better way to do it. I'm not
prepared to put in the time to build a set of entry/modify asp front-end
screens for it, as only one or two people will ever edit it. I could copy
it off the webserver for editing and then upload it again, but, as a
number of the fields are hyperlinks to documents on the webserver, it
makes it difficult creating them when the mdb file is in a different
location.

"Kyle Peterson" <kp*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
also, what your doing can get iffy in general
really not the best idea to be opening/editing an Access database live on
a webserver when asp code is also reading from it

but.. who knows.. I suppose it could work out trouble free but most
likely not as you are experiencing

"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've tried posting this in the 'microsoft.public.access' but I will post
it here also, as I think it might be the webserver which is causing my
problem.
---------
I have an Access 2003 database which is in the "fpdb" folder of my
webserver. Its located there so that I can use asp to build a web-based
front-end for users to read the database -
http://www.nist.ac.th/maths/test1.asp

The MBD file is edited using Access (2003) and opening it through the
UNC
path to the server. When we open it in Access to edit it, we get this
error
message:
"The database 'NAME' is read-only.
You won't be able to save changes made to data or object definitions in
the
database."

If I make a copy of the file (in the same folder or elsewhere) its ok.
If I restart the server the problem goes away for a few hours (is it a
"session" problem?).
If I try to delete or rename the file, I get the message that I cannot,
because "It is being used
by another person or program". However, if I check in 'Computer
Management'
on the webserver the file is NOT open.

When I do open the file for editing, the OPEN MODE in Computer
Management
shows the MDB file as "read" and the LDB file shows as "write+read".

Any ideas why this is happening?

Thanks,
Graham



Jul 22 '05 #6
Graham Taylor wrote:
I've tried posting this in the 'microsoft.public.access' but I will
post it here also, as I think it might be the webserver which is
causing my problem. ---------
I have an Access 2003 database which is in the "fpdb" folder of my
webserver. Its located there so that I can use asp to build a
web-based front-end for users to read the database -
http://www.nist.ac.th/maths/test1.asp

The MBD file is edited using Access (2003) and opening it through the
UNC path to the server. When we open it in Access to edit it, we get
this error message:
"The database 'NAME' is read-only.
You won't be able to save changes made to data or object definitions
in the database."

If I make a copy of the file (in the same folder or elsewhere) its ok.
If I restart the server the problem goes away for a few hours (is it a
"session" problem?).
If I try to delete or rename the file, I get the message that I
cannot, because "It is being used
by another person or program". However, if I check in 'Computer
Management' on the webserver the file is NOT open.
Hmm. Are you meticulously closing and destroying your connections in your
code when finished with them?

When I do open the file for editing, the OPEN MODE in Computer
Management shows the MDB file as "read" and the LDB file shows as
"write+read".
Does the ldb file get deleted after the last user exits the database? If
not, you have permissions problems

Given that permissions are correct (all users of the database, including the
IUSR_machinename account, require Change/Modify permissions for the folder
containing the database) there should be no issues opening a database in
Access while asp is reading from it. You most likely have a permissions
problem.
Are you compacting the database periodically? This sometimes has the effect
of removing previously-set permissions for the database file (a new file is
created during the compact/repair process)

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #7
Bizarre - as of yesterday, the problem has fixed itself . . . the MDB file
has behaved iself completely. Nobody has changed anything (that I am aware
of) in the setup, and I hate it when inexplicable things like this happen!

Anyway, thanks for all your advice Kyle.

Graham
"Kyle Peterson" <kp*****@hotmail.com> wrote in message
news:eO**************@TK2MSFTNGP14.phx.gbl...
There are applications of applications out there both free and pay... that
can create all the asp pages needed to edit a database quickly. They
basically are wizards that look at your database strucure and write
generic code to edit/save/add info.

I would search for some of those possibly.
"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Good point - but I can't really think of a better way to do it. I'm not
prepared to put in the time to build a set of entry/modify asp front-end
screens for it, as only one or two people will ever edit it. I could
copy it off the webserver for editing and then upload it again, but, as a
number of the fields are hyperlinks to documents on the webserver, it
makes it difficult creating them when the mdb file is in a different
location.

"Kyle Peterson" <kp*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
also, what your doing can get iffy in general
really not the best idea to be opening/editing an Access database live
on a webserver when asp code is also reading from it

but.. who knows.. I suppose it could work out trouble free but most
likely not as you are experiencing

"Graham Taylor" <gr******@nist.ac.th> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I've tried posting this in the 'microsoft.public.access' but I will
post it here also, as I think it might be the webserver which is
causing my problem.
---------
I have an Access 2003 database which is in the "fpdb" folder of my
webserver. Its located there so that I can use asp to build a
web-based
front-end for users to read the database -
http://www.nist.ac.th/maths/test1.asp

The MBD file is edited using Access (2003) and opening it through the
UNC
path to the server. When we open it in Access to edit it, we get this
error
message:
"The database 'NAME' is read-only.
You won't be able to save changes made to data or object definitions in
the
database."

If I make a copy of the file (in the same folder or elsewhere) its ok.
If I restart the server the problem goes away for a few hours (is it a
"session" problem?).
If I try to delete or rename the file, I get the message that I cannot,
because "It is being used
by another person or program". However, if I check in 'Computer
Management'
on the webserver the file is NOT open.

When I do open the file for editing, the OPEN MODE in Computer
Management
shows the MDB file as "read" and the LDB file shows as "write+read".

Any ideas why this is happening?

Thanks,
Graham



Jul 22 '05 #8

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

Similar topics

6
by: Steve | last post by:
Hi, I'm trying to convert a file reading loop into one using streams. The BSD OS read API returns the number of bytes read, but istream::read returns itself. How can I find out the number of...
0
by: Garrett Kajmowicz | last post by:
I have two implementations of stringstream and they both handle interleaved reads and writes differently. I was hoping that you might be able to shed some light as to the "correct" operation, and...
8
by: S Shulman | last post by:
Hi All I need to read a file to an array of bytes (any type of file) I tried using FileStream and BinaryReader but it doesn't seem to work Thank you, Shmuel
17
by: Ryan Liu | last post by:
Hi, If I have many threads write to a variable(e.g. var++) and another thread read it on an interval base. For those writing thread, I know I need lock, or its value could be lower ( even I...
5
by: lovecreatesbea... | last post by:
The condition at line 31 is added to check if the program finished to read the whole file. Is it needed and correct? Thank you. #include <fstream> #include <iostream> #include <string> using...
0
by: lovecarole | last post by:
hi, i am the student who should write a program about reading wav file and do the DFT. actually i don't know how to read data of the wav song and save it into the array... if i want to read...
14
by: chance | last post by:
Hello, I have a file on disk called TEMP.ZIP and I would like to somehow get this into a memory stream so I can eventually do this: row = dataStream.ToArray() However, I am not sure of the...
3
by: Osamede.Zhang | last post by:
I have some code like this: SqlCommand cmd = new SqlCommand("get_storeid_byuser", cn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@username", SqlDbType.VarChar, 50).Value...
2
by: Jack | last post by:
Hi, I want to read a string a chars from a stream, and put it into a string. At the moment, I'm creating a buffer of a fixed size, and reading the stream of text into it. It works, but I have...
5
by: Thomas Christensen | last post by:
This issue has been raised a couple of times I am sure. But I have yet to find a satisfying answer. I am reading from a subprocess and this subprocess sometimes hang, in which case a call to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.