pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rachel Willmer <rachel_lists@willmer.org>
To: pgsql-odbc@postgresql.org
Subject: FAQ? how best to implement locking with MS Access client, Postgres server, and ODBC?
Date: Tue, 06 Apr 2004 13:39:14 +0100
Message-ID: <4072A4F2.7060103@willmer.org> (raw)

I have read all available documentation I can find, and am struggling to 
understand how best to implement locking in a multi-user database using 
Access 2000 as the front-end.

Here's the current scenario.

Postgres has the default "Read committed" mode
Access is set to open in "shared" mode, with "record-level locking".
ODBC has row versioning turned on.

I have two machines which attempt to modify the same record in a form. 
The first succeeds, the second fails & rolls back and then the Access 
application throws up a "no current record" error.

I can trap that error in the Access application, but what then am I 
supposed to do with it? I'm happy to either retry the update, or drop it 
silently, but can't work out how to do either successfully.

I guess I have two questions:

(a) has anyone got locking to work in this environment? if so, how?

(b) where can I find some more documentation on this? I've googled for 
hours, but haven't found much of use.

Any pointers will be most welcome...
Rachel




Message-ID: <4072A4F2.7060103@willmer.org>
Permalink:  ../4072A4F2.7060103@willmer.org/
Also on:    postgresql.org/message-id/4072A4F2.7060103@willmer.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: rachel_lists@willmer.org
  Subject: Re: FAQ? how best to implement locking with MS Access client, Postgres server, and ODBC?
  In-Reply-To: <4072A4F2.7060103@willmer.org>
  References: <4072A4F2.7060103@willmer.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox