Re: Begin Tran open disconnected recordset - reconnect - rollback/
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Wed, 27 Feb 2008 18:51:14 -0000
Just to continue on this line of thought. There are actually two
co-dependent connections in the legacy application [which used DAO]. It
tied
the two together using a Workspaces object that was ODBC bound to an
ACCESS
database through table linking with many tables from the SQL Server 7.0
databases. The queries ran through this ODBC connection channel and the
rollback was only through the single ODBC channel.
While I can still follow the rule to open the connection and rollback
depending on the presence of the COM exception - I suspect that for this
case, what must happed is this - Establish a connection for each
recordset,
maintain both, begin tran on both, and commit or rollback depending on
whether one or each of them has a COM exception.
But that is flawed.
You will have to commit/rollback one Recordset before the other.
What happens if you commit RecordSet 1 and it succeeds and you commit
RecordSet 2 and it fails?
You then want to rollback Recordset 1 and it is too late.
I also dont know what happens with registered linked servers and
transactions - more research would be needed (but I would suspect they are
not covered).
I dont know what the best solution is for this.
Research on registered linked servers and transactions would be my first
line of attack.
Cheers
Stephen Howe
.
- References:
- Begin Tran open disconnected recordset - reconnect - rollback/comm
- From: Jamie
- Re: Begin Tran open disconnected recordset - reconnect - rollback/comm
- From: Stephen Howe
- Re: Begin Tran open disconnected recordset - reconnect - rollback/
- From: Jamie
- Re: Begin Tran open disconnected recordset - reconnect - rollback/
- From: Jamie
- Begin Tran open disconnected recordset - reconnect - rollback/comm
- Prev by Date: Re: Begin Tran open disconnected recordset - reconnect - rollback/
- Next by Date: DBNull inside DataTables... errors.
- Previous by thread: Re: Begin Tran open disconnected recordset - reconnect - rollback/
- Next by thread: ADO Classic Scalability in Web Service
- Index(es):
Relevant Pages
|
|