FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ODBC with FileMaker
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
ODBC with FileMaker
Posted: Wed Apr 01, 2009 09:02 AM

I have to write to a Filemaker database.
I install the ODBC driver from Filemaker and make some test with SQL .
The questions are :
How to know the number of record with a select clause :

oODBC := TOdbc():New("NEPHRO", "admin", "123")

oDbf := oOdbc:execute("SELECT IPP FROM PATREC where IPP='25' )
How to check the number of records ??

oDbf := oOdbc:execute("INSERT INTO test (NOM,PRENOM) VALUES ('TEST SQL','essai')" )
How to check that the INSERT is properly executed ?

Thanks

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: ODBC with FileMaker
Posted: Sun Apr 05, 2009 06:59 AM

Jack,

You should use ADO to manage it.

There are many ADO examples in these forums. Please make a search for "ADODB.Connection", thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 300
Joined: Wed Jul 11, 2007 11:06 AM
Re: ODBC with FileMaker
Posted: Mon Apr 06, 2009 09:22 AM

Antonio,
Do you mean it is better to use ADO in place of ODBC ?
Why ?
Is ADO faster or more robust ?

Thanks for your help .

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: ODBC with FileMaker
Posted: Mon Apr 06, 2009 09:40 AM

Jack,

Yes, ADO is the more recent Microsoft solution:

"It is positioned as a successor to Microsoft's earlier object layers for accessing data sources"

http://en.wikipedia.org/wiki/ActiveX_Data_Objects

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion