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 / May 2004

Tip: Looking for answers? Try searching our database.

Protect MS Access file from other applications when i'm accessing it.

Thread view: 
Dhanan - 26 May 2004 17:34 GMT
Hi,

Is there a way to protect my MS Access database file from other
applications when i am using it through jdbc - odbc bridge

I call DriverManager.getConnection ...
after that no other application shall access / copy the mdb file until
i call connection.close();

Is it possible?
Any advice is highly appreciated?

Thanks in advance,

Regards,
Dhanan

driver: sun.jdbc.odbc.JdbcOdbcDriver
url: jdbc:odbc:DRIVER={Microsoft Access Driver
(*.mdb)};DBQ=Z:\\db1.mdb;
Davis - 31 May 2004 17:16 GMT
> Hi,
>
[quoted text clipped - 16 lines]
> url: jdbc:odbc:DRIVER={Microsoft Access Driver
> (*.mdb)};DBQ=Z:\\db1.mdb;

If you are going through the jdbc-odbc bridge that means you can
directly see the mdb file on the file system.  You should therefore be
able to create a File object on the physical file and use the
setReadOnly method while you are working on it.  I have never tried it
and don't know if it would work but it looks possible.


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.