老师好,数据库事务只能通过开启事务的SQLCommand执行SQL语句,是不是意味着下面的代码中,如果 在执行 for ---next 语句中出现了错误,不能回滚,只能通过 cmd.CommandText 用sele ct语句重新加载一个表,来代替
tb2? 谢谢!
dim tb2 as table = tables("窗口.table1")
Dim cmd As new SQLCommand
cmd.C
try
cmd.BeginTransaction()
For Each r As Row In tb2.Rows
------
next
cmd.Commit()
----------------