wood burning stoves 2.0*
The moose likes JDBC and the fly likes A failing ExecuteUpdate with AutoCommit=true Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "A failing ExecuteUpdate with AutoCommit=true" Watch "A failing ExecuteUpdate with AutoCommit=true" New topic
Author

A failing ExecuteUpdate with AutoCommit=true

Julian Vicente
Greenhorn

Joined: Aug 20, 2003
Posts: 3
If you want to execute only one SQL sentence, it�s necesary to include it in a transacction in order to ensure your database integrity?
I think that, with autoCommint=true, a failing update or insert sentence will never put into the database corrupt data... like if it executes a rollback after failing, but I�m not sure, and I supose that executing each single sentence into a transaction it�s *quite* expensive. Anybody knows something about it?
Thanks
 
Don't get me started about those stupid light bulbs.
 
subject: A failing ExecuteUpdate with AutoCommit=true
 
Similar Threads
How to decode a String with '& # 39;'?
Post your favorite trick questions
Extracting sentences from a text file
how to make jar file for database dependent java application
Drivel