 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
VisionSet Guest
|
Posted: Sat Jan 03, 2004 10:56 pm Post subject: Lock record/tables in MS Access |
|
|
I do this:
SELECT a Set of records from database
compare this with another Set
If they are the same I UPDATE, INSERT & DELETE to the database
But I need to do these tasks with a locked table or series of records, to
ensure no concurrent writes incur conflict.
How can I achieve this in Access through JDBC-ODBC?
I have read that I must get Access to do the locks rather than JDBC, but how
do I instruct Access to do this?
Or any other suggestions to achieve this goal?
--
Mike W
|
|
| Back to top |
|
 |
VisionSet Guest
|
Posted: Sun Jan 04, 2004 12:57 am Post subject: Re: Lock record/tables in MS Access |
|
|
"VisionSet" <spam (AT) ntlworld (DOT) com> wrote
....
| Quote: | But I need to do these tasks with a locked table or series of records, to
ensure no concurrent writes incur conflict.
How can I achieve this in Access through JDBC-ODBC?
I have read that I must get Access to do the locks rather than JDBC, but
how
do I instruct Access to do this?
Or any other suggestions to achieve this goal?
|
Actually I see now that I *can* use transactions to accomplish this.
Thanks [email]marvinbbb (AT) yahoo (DOT) de[/email] for your reply to an earlier thread
--
Mike W
|
|
| Back to top |
|
 |
Silvio Bierman Guest
|
Posted: Sun Jan 04, 2004 9:07 am Post subject: Re: Lock record/tables in MS Access |
|
|
"VisionSet" <spam (AT) ntlworld (DOT) com> wrote
| Quote: | "VisionSet" <spam (AT) ntlworld (DOT) com> wrote in message
news:2IHJb.16232$526.108694 (AT) newsfep4-glfd (DOT) server.ntli.net...
...
But I need to do these tasks with a locked table or series of records,
to
ensure no concurrent writes incur conflict.
How can I achieve this in Access through JDBC-ODBC?
I have read that I must get Access to do the locks rather than JDBC, but
how
do I instruct Access to do this?
Or any other suggestions to achieve this goal?
Actually I see now that I *can* use transactions to accomplish this.
Thanks [email]marvinbbb (AT) yahoo (DOT) de[/email] for your reply to an earlier thread
--
Mike W
|
No you cant. Access has terrible multi-user behaviour with a broken locking
scheme. It has no real transactional behaviour so the transaction APIs in
JDBC will not do anything usefull for you.
If you are doing more than single user data storage drop Access and look at
something different (SQLServer, MySQL, ...)
Silvio Bierman
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|