Begin Tran open disconnected recordset - reconnect - rollback/comm
- From: Jamie <Jamie@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Feb 2008 12:58:03 -0800
Is is possible to commit or rollback under the following circumstances using
ADO?
1. Begin a Tran on a database
2. Open a recordset and disconnect it
3. Perform multiple operations on the disconnected recordset
4. Reconnect and updatebatch on the recordset with adMarshallAll (default)
5. Filter (ModifiedRS.Filter = adFilterConflictingRecords)
6. When ModifiedRS.recordcount>0
6a ROLLBACK initial Tran from step 1.
7. Whne ModifiedRS.recordcount=0
7a COMMIT initial Tran from step 2.
Given above sequence, if Rollback or Commit is completed
A) Will TRANSACTION effect the updatebatch condition given that the record
was opened after the Begin Tran?
OR
B) Will the fact that the recordset is disconnected mean that the
commit/rollback tran will not effect the records from that batch?
.
- Follow-Ups:
- Re: Begin Tran open disconnected recordset - reconnect - rollback/comm
- From: Stephen Howe
- Re: Begin Tran open disconnected recordset - reconnect - rollback/comm
- Prev by Date: Re: ADO.NET SQLConnection Best Practices
- Next by Date: ADO Classic Scalability in Web Service
- Previous by thread: Re: ADO.NET SQLConnection Best Practices
- Next by thread: Re: Begin Tran open disconnected recordset - reconnect - rollback/comm
- Index(es):
Relevant Pages
|
|