M
Marty
I need to use three data components to write to three different tables
(same database). But they must participate in the same transaction
(all must succeed or rollback). At the same time, each data component
should be able to perform an update without a transaction if desired.
Not sure how to do this... I'm thinking of passing SqlConnection
(associated with SqlTransaction) object to each method as method
paramter. Each method would check the connection parameter - if not
null, participate in transaction (let "caller" do commit & rollback,
etc) else not part of transaction (method is then responsible for
commit & rollback, etc). Is this about the only way to accomplish
this? COM+ not an option at this time. Ideas appreciated!
--Marty
(same database). But they must participate in the same transaction
(all must succeed or rollback). At the same time, each data component
should be able to perform an update without a transaction if desired.
Not sure how to do this... I'm thinking of passing SqlConnection
(associated with SqlTransaction) object to each method as method
paramter. Each method would check the connection parameter - if not
null, participate in transaction (let "caller" do commit & rollback,
etc) else not part of transaction (method is then responsible for
commit & rollback, etc). Is this about the only way to accomplish
this? COM+ not an option at this time. Ideas appreciated!
--Marty