Board index » delphi » Record locking with ADO Express, ADO 2.5 and Access 2000 .mdb files

Record locking with ADO Express, ADO 2.5 and Access 2000 .mdb files

I'm having problems using pessimistic locking on an Access 2000 .mdb file
using ADO 2.5 and TADOTable.  I'm writing a multi-user system whose client
applications all reference the .mdb file and the system.mdw in a shared
directory an NT Server 4 system. I've set the "Jet OLEDB:Database Locking
Mode" provider specific property to 1 (which denotes row-level locking).  I
am assuming that like TTable with BDE, putting a dataset into edit mode will
create a lock for that record.  Is this right?
 

Re:Record locking with ADO Express, ADO 2.5 and Access 2000 .mdb files


Only if you are using a server-side cursor.

ps. MS Access doesn't support row-locking, only page-locking. If you want to
use row-locking you have to adjust the size of a record to fit exactly one a
page.

"Egdif" <ben.fi...@stylusnet.com> schreef in bericht
news:0h8V5.12288$Bh.81379@NewsReader...

Quote
> I'm having problems using pessimistic locking on an Access 2000 .mdb file
> using ADO 2.5 and TADOTable.  I'm writing a multi-user system whose client
> applications all reference the .mdb file and the system.mdw in a shared
> directory an NT Server 4 system. I've set the "Jet OLEDB:Database Locking
> Mode" provider specific property to 1 (which denotes row-level locking).
I
> am assuming that like TTable with BDE, putting a dataset into edit mode
will
> create a lock for that record.  Is this right?

Re:Record locking with ADO Express, ADO 2.5 and Access 2000 .mdb files


Hi,

This is probably a stupid question.  I know what a record is but what do you
mean when you talk about page? or is there some FAQ that I should be
reading.

Many Thanks,

Don

Quote
"M.H. Avegaart" <avegaartNOS...@mccomm.nl> wrote in message

news:9052s3$gdt$1@porthos.nl.uu.net...
Quote
> Only if you are using a server-side cursor.

> ps. MS Access doesn't support row-locking, only page-locking. If you want
to
> use row-locking you have to adjust the size of a record to fit exactly one
a
> page.

> "Egdif" <ben.fi...@stylusnet.com> schreef in bericht
> news:0h8V5.12288$Bh.81379@NewsReader...
> > I'm having problems using pessimistic locking on an Access 2000 .mdb
file
> > using ADO 2.5 and TADOTable.  I'm writing a multi-user system whose
client
> > applications all reference the .mdb file and the system.mdw in a shared
> > directory an NT Server 4 system. I've set the "Jet OLEDB:Database
Locking
> > Mode" provider specific property to 1 (which denotes row-level locking).
> I
> > am assuming that like TTable with BDE, putting a dataset into edit mode
> will
> > create a lock for that record.  Is this right?

Re:Record locking with ADO Express, ADO 2.5 and Access 2000 .mdb files


Disregard my previous answer. It seems that MS Access 2000 is able to use
record-locking. See
http://msdn.microsoft.com/library/officedev/odeopg/deovrpagelevellock...
cordlevellocking.htm for more information.

"Donavon Mitchell" <toffeef...@hotmail.com> schreef in bericht
news:t2c5d0a16s677@corp.supernews.com...

Quote
> Hi,

> This is probably a stupid question.  I know what a record is but what do
you
> mean when you talk about page? or is there some FAQ that I should be
> reading.

> Many Thanks,

> Don

> "M.H. Avegaart" <avegaartNOS...@mccomm.nl> wrote in message
> news:9052s3$gdt$1@porthos.nl.uu.net...
> > Only if you are using a server-side cursor.

> > ps. MS Access doesn't support row-locking, only page-locking. If you
want
> to
> > use row-locking you have to adjust the size of a record to fit exactly
one
> a
> > page.

> > "Egdif" <ben.fi...@stylusnet.com> schreef in bericht
> > news:0h8V5.12288$Bh.81379@NewsReader...
> > > I'm having problems using pessimistic locking on an Access 2000 .mdb
> file
> > > using ADO 2.5 and TADOTable.  I'm writing a multi-user system whose
> client
> > > applications all reference the .mdb file and the system.mdw in a
shared
> > > directory an NT Server 4 system. I've set the "Jet OLEDB:Database
> Locking
> > > Mode" provider specific property to 1 (which denotes row-level
locking).
> > I
> > > am assuming that like TTable with BDE, putting a dataset into edit
mode
> > will
> > > create a lock for that record.  Is this right?

Other Threads