Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does XML SQL Utility commit after it is done inserting, deleting, or updating? What happens if an error occurs?

0
Posted

Does XML SQL Utility commit after it is done inserting, deleting, or updating? What happens if an error occurs?

0

By default the XSU executes a number of insert, delete, or update statements at a time. The number of statements batch together and executed at the same time can be overridden using the setBatchSize feature. Also, by default XSU does no explicit commits. If autocommit is on (default for the JDBC connection), then after each batch of statement executions a commit occurs. You can override this by turning autocommit off and then specifying after how many statement executions a commit should occur, which can be done using the setCommitBatch feature. If an error occurs, XSU rolls back to either the state the target table was in before the particular call to XSU, or the state right after the last commit made during the current call to XSU.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123