Starting with ADO

Starting with ADO

Postby fraxzi » Tue Feb 03, 2015 1:58 am

Hi All,

I'm new to FWH ADO and I hope to have a good start.

which one to start?

(1) This?
Code: Select all  Expand view

oRS := CreateObject( "ADODB.Recordset" )
oRS:Open( 'SELECT * FROM mytable',  'Provider=SQLOLEDB;Data Source=mySQL2012server;Initial Catalog=mysqldb;uid=sa;pwd=password')
 


(2) This:
Code: Select all  Expand view

  oCn := FW_OpenAdoConnection(  'Provider=SQLOLEDB;Data Source=mySQL2012server;Initial Catalog=mysqldb;uid=sa;pwd=password', .T.)
  oRs := FW_OpenRecordSet( oCn, 'SELECT * FROM mytable' )
 
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: Starting with ADO

Postby Enrico Maria Giordano » Tue Feb 03, 2015 9:11 am

Frances,

I prefer to not hide frameworks under other functions or classes. At least, you can find a lot of docs about ADO that you can use almost directly.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8568
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Starting with ADO

Postby fraxzi » Wed Feb 04, 2015 3:34 am

Enrico,

Thanks for the advice. Noted.
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 27 guests