473,382 Members | 1,710 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,382 software developers and data experts.

Microsoft Access read-only back end intermittent

Hello,

I'm having an intermittent problem with the back-end of my database.

On an intermittent basis, the back-end tables will become read-only. This only happens when the back-end is located on a network share.

It isn't a permissions issue because the problem occurs only intermittently when logged in as the same user.

If I open the back-end database on its own and then the front-end client (on the local drive) this problem goes away.

Once the back-end has been made 'read-only', I have to open it on its own and close it again to make the tables editable.

Any ideas?

Jon
Dec 1 '08 #1
15 5576
RuralGuy
375 Expert 256MB
Have you tried using a Persistant Connection yet?Microsoft Access Performance FAQ
Dec 1 '08 #2
I've solved it! I read up on using a persistent connection. Thanks RuralGuy!
I have the database open a hidden form linked to a dummy table in my database. This form is always open in the background, and it's the same as having the back-end database open at the same time.

I still have a minor problem if I close the database and then open it again quickly afterwards; this tends to make the back-end read-only. I guess this might be to do with record locks.

Any idea on how to stop this, perhaps by checking locks on the back-end and waiting if it is being closed at that moment? I wouldn't know how to do this...
Dec 1 '08 #3
RuralGuy
375 Expert 256MB
You can check for the .ldb file before opening the BE.
Dec 1 '08 #4
Hello again,

The persistent connection seems to have improved performance somewhat, but I still occasionally have the problem with the back-end becoming read-only.

I'm not completely clear about what might be causing this. The only way to make the back-end writeable again is to open the back-end on its own.

Once this database is deployed, this isn't an acceptable solution.
Can anyone help?
Dec 3 '08 #5
RuralGuy
375 Expert 256MB
I do not understand how the BackEnd can switch to read only if you keep it open with a persistant connection.
Dec 3 '08 #6
Hello again,

Thanks for replying again, RuralGuy.

You're right, it's a weird situation! Since I've implemented the persistent connection, it seems to happen only now when I first open the database (before I did this, it could happen at any moment).

I start up the client (which is located on the local hard disk) and at the bottom of every form it will say 'This recordset is not updateable'.

If I then start up the back-end on its own, the first time I do so it will tell me that the database has been opened as read-only. However, when I then close the back-end, it becomes writeable again and the client works fine (until the back-end spontaneously decides that it's read-only again!)

I'm really pulling my hair out on this one, so any further ideas are much appreciated!
Dec 4 '08 #7
RuralGuy
375 Expert 256MB
Are you checking for the absense ot the .ldb file before opening the BackEnd?
Dec 4 '08 #8
Hello again,

I wouldn't expect the ldb file to be absent in all cases: the database might have two or three people accessing it simultaneously, which works fine. Another user having the database open doesn't turn the back-end read-only.

The back-end seems to go read-only spontaneously, although it tends to happen when the database is first opened.
Dec 8 '08 #9
RuralGuy
375 Expert 256MB
I didn't realize this was a multi-user environment. Does everyone have the same persistant connection FrontEnd?
Dec 8 '08 #10
Hi,

Sorry for the late reply - the development has taken a different direction but I've got back to this line now!

Yes, all front-end deployments open a connection to a table in the back-end in a hidden form.

The problem is happening less frequently but it still occasionally rears its head and stops all users from editing the data.
Dec 18 '08 #11
RuralGuy
375 Expert 256MB
I wonder if you have a flakey NIC somewhere?
Dec 18 '08 #12
Anyone else have any insights? The damn thing reared its ugly head again today!
Dec 19 '08 #13
RuralGuy
375 Expert 256MB
How are you determining that the BackEnd is read only? Does your system throw an error?
Dec 19 '08 #14
Yes, the status bar at the bottom says 'This recordset is not updatable' and users cannot add new records or edit existing ones.
Dec 19 '08 #15
RuralGuy
375 Expert 256MB
I take it you are using a query. Have you looked at Microsoft Access tips: Why is my query read-only? yet?
Dec 19 '08 #16

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: David ROBERT | last post by:
Hello, I need to read data from a MS Access database. The program (reader) is installed on a linux box and is written in python langage. The database is MS Access 2002 installed on a Win XP box...
15
by: M P | last post by:
What does this mean? I am accessing an ASP page that queries Access Database thru fileDSN. I'm using IIS 5.0 Win2K SP4 Microsoft OLE DB Provider for ODBC Drivers error '80004005' General...
1
by: Michael Meckelein | last post by:
Hi, My csharp application access a MS Access database through odbc connection. Is there a way to compact the Access database after deleting records using the odbc connection?
2
by: Andrew S. Giles | last post by:
OK, I am trying to prototype a data import function, and the Data Import Wizard from Microsoft Access is what we wanted to pattern our importer off of. How do I get to this wizard inside the...
2
by: Paul M | last post by:
Hello, is there any way of reading Microsoft Access Macros via VBA code? Or better still through VB .net code? By reading I mean being able to read what the actions are plus any parameters &...
4
by: klynn | last post by:
Hi: I'm having problems reading a Microsoft Access file from my ASP.Net app on a Windows Server 2003 machine. The error message: The Microsoft database engine cannot open the file, <my_file>. It...
0
by: shapper | last post by:
Hello, I have the tables content and content_localized in a Microsoft Access database. I created a Query in my Microsoft Access database named "content_SELECT": SELECT...
8
by: reema via AccessMonster.com | last post by:
Did any one faces any difficulties ,issuess or problems using Microsoft Access -- Message posted via http://www.accessmonster.com
3
by: SimYing | last post by:
Is there any way to read and query data from Microsoft Access? Actually, i had anapplication which build using Python, wxPython, NumArray and etc. Now i need to find a way to retrieve data from...
0
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.