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. 1 2628
On Tue, 29 Mar 2005 17:11:33 +0000, leon <sv*@iprimus.co m.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 have an series of interactive HTML
forms. The user begins a Cookie session. A database connection is
opened and a transaction is begun. After the...
|
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?
(May also substitute UPDATE and/or DELETE queries for DAO code.)
I was just brought on to a project with Access 97 where the all data is
kept on...
|
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 default.
But, still face the same problem: Database corrupted! (But, it allows
to be repaired)
2) I found that the relationship linkage between...
|
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 times the code is working properly, but than it happens.
DIRECT behind the SELECT , the table has a SHARED-LOCK .
There is only this user to work with...
|
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 long) . I'm pulling the data back using ODBC. Details are:
Microsoft Access Driver 4.00.6306.00
Jet 4.0 release level that is currently installed...
| |
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 some
problems with this programm. I checked, the log files showed that the
database was corrupted.
The customer told me that there no 'illegal'...
|
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 table involved.
Not really understanding what is keeping me out, I have investigated a .ldb database, which I believe is a locks database. I can...
|
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 user are attempting to change the same data at the same time.
I've tried disconnecting the internet. And anything else I could think
of but nothing...
|
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 have split the
database into front end and back end databases and put the front end
on each of the users' computers. All users can open the front end...
|
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...
|
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. ...
| |
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |