G
Guest
How can I include the following code in a transaction? How can I set the
Transaction propertity for the call to MyDataAdapter.Update()? Thanks.
' Dim tr as OleDbtransaction = cnn.BeginTransaction
Dim dr As DataRow = MyDataSet.Tables("Customer").NewRow
dr(0) = "Smith"
MyDataSet.Tables("Customer").Rows.Add(dr)
MyDataAdapter.Update(MyDataSet,"Customer")
'tr.Commit
Transaction propertity for the call to MyDataAdapter.Update()? Thanks.
' Dim tr as OleDbtransaction = cnn.BeginTransaction
Dim dr As DataRow = MyDataSet.Tables("Customer").NewRow
dr(0) = "Smith"
MyDataSet.Tables("Customer").Rows.Add(dr)
MyDataAdapter.Update(MyDataSet,"Customer")
'tr.Commit