ODBC with FileMaker

ODBC with FileMaker

Postby Jack » Wed Apr 01, 2009 9: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
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: ODBC with FileMaker

Postby Antonio Linares » Sun Apr 05, 2009 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: ODBC with FileMaker

Postby Jack » Mon Apr 06, 2009 9: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 .
Jack
 
Posts: 288
Joined: Wed Jul 11, 2007 11:06 am

Re: ODBC with FileMaker

Postby Antonio Linares » Mon Apr 06, 2009 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests