2

In our application we are running query 'update statistics with sample 30 percent'.

Our system design is such that we have to use update statistics query once a day to improve query performance.

We are setting autocommit as false, running 'update statistics' and then some queries which are failing causing a connection rollback.

In this case does 'update statistics' query rollback as well? Should I again run update statistics command the second time? Does 'update statistics' auto commit, or should I commit after 'update statistics' and then execute the remaining queries?

Thanks.

1 Answer 1

3

Update statistics will rollback back with the rest of the transaction.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.