Sharing Connections
Posted: Thu 23 Aug 2007 17:59
Hello you all,
I'm trying to change my application to use ODAC e SDAC instead of Borland ADO Components.
I've created a new component (TXConnection) which creates internally, at runtime and design time, a TOraSession (ODAC) or a TMSConnection (SDAC) according to registry settings.
I have to make two TXConnections share same connection handles.
Using ADO I can do:
ADOConnection1.ConnectionObject := ADOConnection2.ConnectionObject;
Using ODAC is also very simple:
OraSession1.AssignConnect(OraSession2);
But I could not figure out how to do it using SDAC components...
Any help?
thanks!
I'm trying to change my application to use ODAC e SDAC instead of Borland ADO Components.
I've created a new component (TXConnection) which creates internally, at runtime and design time, a TOraSession (ODAC) or a TMSConnection (SDAC) according to registry settings.
I have to make two TXConnections share same connection handles.
Using ADO I can do:
ADOConnection1.ConnectionObject := ADOConnection2.ConnectionObject;
Using ODAC is also very simple:
OraSession1.AssignConnect(OraSession2);
But I could not figure out how to do it using SDAC components...
Any help?
thanks!