Does OleDbTransaction auto rollback if I don’t call commit before it gets disposed?
Does OleDbTransaction auto rollback if I don’t call commit before it gets disposed?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See here for the MSDN documentation on the details.
The transaction must be committed, otherwise the staged changes do not get committed.
Upon error you should call the rollback of the staged changes. This quote from the documentation answers the question. Yes it does get rolled back.
http://msdn.microsoft.com/en-us/library/93ehy0z8.aspx