Hi
What is the best way to establish a connection with MS SQLSERver
oCon := TOLEAuto():New('ADODB.Connection')
or
oCon := CREATEOBJECT( "ADODB.Connection" )
It is the same for recordset :
oRsd := TOleAuto():New( "ADODB.Recordset" )
or
oRscp:=CREATEOBJECT( "ADODB.Recordset" )
Thanks
Philippe
Sql Connect toleauto OR createobject
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Sql Connect toleauto OR createobject
They are the same. I personally prefer Createobject() because it's used unchanged in many different programming environments.
EMG
EMG