aspose file tools
The moose likes JDBC and the fly likes Unable to set AutoCommit to false in MS Access Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Unable to set AutoCommit to false in MS Access" Watch "Unable to set AutoCommit to false in MS Access" New topic
Author

Unable to set AutoCommit to false in MS Access

Abhinav Anand
Ranch Hand

Joined: May 02, 2002
Posts: 113
Hi guys,
I use MS Access as the backend database and JdbcOdbcDriver driver as the jdbc driver. I want to support concurrent connections so to disable concurrent updates to my tables I try to set the connection's auto commit mode to false. But when I try to execute this code:
con.setAutoCommit(false);
It does not works. The message i get states that the auto commit mode cannot be set at this paticular position.
Any suggetions ??
Thanks
Asanka Nanayakkara
Greenhorn

Joined: Aug 13, 2002
Posts: 10
Hi.
I assume that you are using JDBC DBC Bridge to connect to Access database. You can’t do transaction handling using Access; Access a database doesn’t have built in transaction log or it doesn’t support transaction handling as his big brother SQL Server. (Remember they are completely different type of databases).
Regards
Asanka
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Unable to set AutoCommit to false in MS Access
 
Similar Threads
doing transaction using jdbc
Weblogic 10 +XA Data Source
storing date in mysql
autoCommit doubt
Updating data to a new MS Access database