Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages
Started by Cristian
Fri, 26 Jan 2001 21:45
transactions in ADO
Author: Cristian
Date: Fri, 26 Jan 2001 21:45
Date: Fri, 26 Jan 2001 21:45
8 lines
1311 bytes
1311 bytes
Hi:
I'm trying to build an MDI program where the Children windows make its
own transaction. The first child window operate fine, but the second present
an error when I try to post any record.
The children windows has a TADOConnection, and start the transaction
(BeginTrans())in the OnShow event of the Child form. I make a similir
program but using BDE components, in this case a use a TSession component to
solve the multi transaction problem. What can I do in ADO architecture?
Re: transactions in ADO
Author: Mark Cashman
Date: Wed, 31 Jan 2001 02:41
Date: Wed, 31 Jan 2001 02:41
17 lines
1501 bytes
1501 bytes
Hi. Cristian! The transaction is run off the shared TADOConnection object. There is no default such object, however, unlike the default Session variable, so you have to drop one on your form / data module and connect the TADOTable / Query to it. I hope this gets you started. ------ Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at http://www.temporaldoorway.com - Original digital art, writing, music and more - C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring (Join us!) http://www.temporaldoorway.com/programming/index.htm ------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads