TOraQuery.Connection Property
Posted: Mon 24 Sep 2012 11:58
Hello,
we are switching from ADO to ODAC and i want to know what's the difference between TOraQuery.Connection and TOraQuery.Session property or rather if they are equal, so there is no disadvantage to use the Component like the following code:
we are switching from ADO to ODAC and i want to know what's the difference between TOraQuery.Connection and TOraQuery.Session property or rather if they are equal, so there is no disadvantage to use the Component like the following code:
Code: Select all
{$IFDEF ODAC}
GlobalDataConnection: TOraSession;
{$ELSE}
GlobalDataConnection: TADOConnection;
{$ENDIF}
Code: Select all
{$IFDEF ODAC}
qryData := TORAQuery.Create(self);
{$ELSE}
qryData := TADOQuery.Create(self);
{$ENDIF}
qryData.Connection := GlobalDataConnection;