Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO Transaction problem

Status
Not open for further replies.

martinm

IS-IT--Management
Mar 30, 2001
113
GB
Hi all,

D6, XP Pro, Sybase ASE 12.xx

I have multiple TADOStoredProcs, all of which need to be executed within a
transaction, so have something along these lines:


FconConnection.BeginTrans;
try
sp1.execproc;
sp2.execproc;
sp3.execproc;
sp4.execproc;
FconConnection.CommitTrans;
except
FconConnection.RollbackTrans;
end;

However, the first execproc causes the following exception:

' Transaction cannot have multiple recordsets with this cursor type. Change
the cursor type, commit the transaction, or close one of the recordsets'

I've set the CursorTypes to ctStatic, but no change.
Works fine without the transaction control.

A bit confusing for a Tuesday.....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top