aspose file tools*
The moose likes JDBC and the fly likes Auto commit??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Auto commit???" Watch "Auto commit???" New topic
Author

Auto commit???

Jon Tsatsonis
Greenhorn

Joined: May 10, 2000
Posts: 4
Hi,
Can anyone answer my question?
If I set a connections autocommit mode to false, execute a couple of SQL statements and then commit. Will the connection still have autocommit mode set to false? Or does calling the explicit .commit method automatically set autocommit to true again?
Thanks for any help.
Jon.
Tom P
Ranch Hand

Joined: May 06, 2000
Posts: 88
The connection will still be set to auto commit being false. You can test this yourself by running the getAutoCommit() method.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Auto commit???
 
Similar Threads
How can i close a connection to Access97?
commit and rollback in transaction
PreparedStatement
problem of rollback()
Setting autoCommit(false)/Rollback()