Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic