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

Jet database engine and table LOCKS

Hi all,

I have an .mdb file (access database) which has been set to table level
locking (i.e. not just records in question, but the whole table). The
database is also in sharing mode (ie. not exclusive)...

here is my problem:

i have an application that accesses the aforementioned database from Jet
ODBC driver and runs a query which implicitly locks the whole table -
that is just what i want. The results are very good when trying to open
the same table from Access software - the table is told to be locked
(just what I want) so all appears to be going ok....

HOWEVER, when reverse is applied - that is when I open the table from
Access software, and then try to run the application which contacts the
databse from ODBC - the application goes ahead (albeit a bit slower) and
sees the table - when I really want it to tell me that the table is
locked!!!

Further, when I just run two instances of the application which accesses
the database from ODBC driver - both can access the table at the same time.

The queries and type of ODBC connections initiated by applications are
for updates (not read-only) - in fact this is implictly indicated when
MS Access software when it tells me that the table is locked (if i try
to open it from MS Access)...

the LDB file is present by the way...

So my thinking is - perhaps Jet engine whilst correctly setting the list
of connections to table in ldb file does not actually honour the locking
policy (i.e. ignores it) and lets the ODBC connection still deal and
look at the data? if so - is anyone out there who is aware of latest
(and hopefully greatest) version of Jet driver and if there were any
bugs in relation to the aforementione issues with Jet driver?

Kind regards,
Leon.

PS I realise that table locking is bad, slow , etc., etc. - I still have
to use it though so whilst "why do you want to do it in the first
place?" questions are welcome they will be of little value in this context.
Nov 13 '05 #1
1 2611
On Tue, 29 Mar 2005 17:11:33 +0000, leon <sv*@iprimus.com.au> wrote:

Why do you want to do this :-)

I don't think you can have this fine control over Jet's locking
strategy. You would rather have to create your own pseudo-lock table
and use this information. For example that table could hold the
computer names and a YesNo field. When a computer triesto access the
table, it should first check with this table if YesNo not set for any
other machine. Then it should set it, do its thing with the table, and
unset it.

-Tom.

Hi all,

I have an .mdb file (access database) which has been set to table level
locking (i.e. not just records in question, but the whole table). The
database is also in sharing mode (ie. not exclusive)...

here is my problem:

i have an application that accesses the aforementioned database from Jet
ODBC driver and runs a query which implicitly locks the whole table -
that is just what i want. The results are very good when trying to open
the same table from Access software - the table is told to be locked
(just what I want) so all appears to be going ok....

HOWEVER, when reverse is applied - that is when I open the table from
Access software, and then try to run the application which contacts the
databse from ODBC - the application goes ahead (albeit a bit slower) and
sees the table - when I really want it to tell me that the table is
locked!!!

Further, when I just run two instances of the application which accesses
the database from ODBC driver - both can access the table at the same time.

The queries and type of ODBC connections initiated by applications are
for updates (not read-only) - in fact this is implictly indicated when
MS Access software when it tells me that the table is locked (if i try
to open it from MS Access)...

the LDB file is present by the way...

So my thinking is - perhaps Jet engine whilst correctly setting the list
of connections to table in ldb file does not actually honour the locking
policy (i.e. ignores it) and lets the ODBC connection still deal and
look at the data? if so - is anyone out there who is aware of latest
(and hopefully greatest) version of Jet driver and if there were any
bugs in relation to the aforementione issues with Jet driver?

Kind regards,
Leon.

PS I realise that table locking is bad, slow , etc., etc. - I still have
to use it though so whilst "why do you want to do it in the first
place?" questions are welcome they will be of little value in this context.


Nov 13 '05 #2

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

Similar topics

16
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
7
by: Danny J. Lesandrini | last post by:
I know this has been discussed before, as I've seen the Google posts, but they all leave me with an unanswered question: Does my DAO code executed in the front end cause the back end to bloat?...
3
by: Leinad Kong | last post by:
I'm using Access 2002, as front-end and back-end as well: 1) I faced database corrupted problems, when more than 1 user edit concurrently. I'm using All-records Locking, and open-exclusively as...
1
by: Peter Stojkovic | last post by:
VS 2003 DOT.NET Framework 1.1 Database: Sybase Adaptive AnyWhere 9.02 Using ODBC as database-interface Sometimes I get LOCKS on a table, after I have made only a select on the table. 100...
7
by: Mathew Butler | last post by:
I'm investigating an issue I have when pulling data back from MS access I'm retrieving all rows from a column in a table of 5000 rows - accessing a column of type "memo" ( can be 65353 character...
17
by: shineofleo | last post by:
Here is the situation: I wrote a VB programm, which stores all the information in a single Access database file using jet engine. It worked well, however one of my customs reported that there was...
7
by: s w dunn | last post by:
Hello, I am in charge of maintaining a little ACCESS database used by our purchasing department. I need to add some new values to a table, but I can't open the .be database in order to access the...
4
by: speedbomb | last post by:
Hi, I have a small personal database. Yesterday it wouldn't let me open it and gave me the following error message: The Microsoft Jet Database engine stopped the process because you and another...
25
by: zmickle | last post by:
Excuse my noobness. I am managing an access database that is shared by 4 users. Management does not want to use any technologies outside of access for this application (no SQL Server, etc). I...
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
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?
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...
0
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...
0
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...
0
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...

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.