How to implement transaction way in vb.net?
问题 I develop one application using VB.net (200%) that connects to MS-Access Database, I use TableAdapter and Dataset for connection to the Access DB file. I need to implement a simple transaction method (commit, rollback) in saving to the DB? Is there a way to do that without the need to use inline SQL statement? Thanks, 回答1: As I read Microsoft Jet (Access DB Engine) supports transactions. So you can create a transaction like this (example from CodeProject): SqlConnection db = new SqlConnection