如果你要执行事件也是可以,不过就是麻烦一些。再有就是狐表现在保存数据的时候不支持事务。所以只能自己写了。
参考。前提是mssql数据库。
Dim cmd As new SQLCommand
cmd.C
cmd.CommandText = "Begin Transaction test; update 订单 set 单价 = 999; Commit Transaction test"
'cmd.CommandText = "Begin Transaction test; update 订单 set 单价 = 999; ROLLBACK Transaction test"
cmd.ExecuteNonQuery
[此贴子已经被作者于2012-12-5 10:16:34编辑过]