Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / January 2004

Tip: Looking for answers? Try searching our database.

Lock record/tables in MS Access

Thread view: 
VisionSet - 03 Jan 2004 22:56 GMT
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?

Signature

Mike W

VisionSet - 04 Jan 2004 00:57 GMT
...
> But I need to do these tasks with a locked table or series of records, to
> ensure no concurrent writes incur conflict.
[quoted text clipped - 5 lines]
>
> Or any other suggestions to achieve this goal?

Actually I see now that I *can* use transactions to accomplish this.
Thanks marvinbbb@yahoo.de for your reply to an earlier thread
Signature

Mike W

Silvio Bierman - 04 Jan 2004 09:07 GMT
> ...
> > But I need to do these tasks with a locked table or series of records, to
[quoted text clipped - 10 lines]
> Actually I see now that I *can* use transactions to accomplish this.
> Thanks marvinbbb@yahoo.de for your reply to an earlier thread

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.