Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

A failing ExecuteUpdate with AutoCommit=true

 
Julian Vicente
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!