GET CONNECTION

Places the current OpenESQL connection and transaction objects into the supplied host variables such that the objects can then be shared with other ADO.NET programs.

Syntax:

>>--EXEC ADO---GET CONNECTION INTO :conn_obj_hv---------->

 >--------------+-TRANSACTION-+ INTO :tran_obj_hv--------> 
                +-TRAN--------+
              
 >--END-EXEC----><

Parameters:

conn_obj_hv Host variable where the current OpenESQL ADO.NET connection object is placed.
tran_obj_hv Host variable where the current OpenESQL ADO.NET transaction object is placed.

Example:

     EXEC ADO 
        GET CONNECTION INTO :con TRANSACTION INTO :tran
     END-EXEC