FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How difference between ADO and TMySql, if use MySql?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
How difference between ADO and TMySql, if use MySql?
Posted: Mon Jun 24, 2013 10:29 AM

Dear All,

I've a plan to move to MySql but I'm not quite sure about this.

What difference between ADO and TMySql?

What is the Advantage and DisAvantage between ADO and TMySql?

Sorry, if this topic has been discussion.

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: How difference between ADO and TMySql, if use MySql?
Posted: Mon Jun 24, 2013 04:15 PM

dutch,

ADO requires a client to be installed on the machines you install your system, moreover, to use pure direct SQL statements. With no need for customers tmysql connection, then using the API directly from mysql and you can use features like FIELDPUT, FIELDGET, fieldname, fieldpos.

William, Morales

Saludos



méxico.sureste
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: How difference between ADO and TMySql, if use MySql?
Posted: Mon Jun 24, 2013 04:48 PM

Dutch,

If your apps will only run on Windows, then I would say ADO is a good choice as you will be able to work with different databases engines, and theoretically your code will be almost the same. In practice we have seen that there are differences between diferent databases engines even if they use ADO. I have never compared the speed between ADO and direct TMySQL, so I don't know if that could be a point to consider also.

If you ever think to migrate your app to Linux or OSX, there is no ADO there, so then better use a direct connection to a database engine like TMySQL. I don't think there is an ADO for Linux, at least it would be based on Mono. Anyhow, I have never tested it.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: How difference between ADO and TMySql, if use MySql?
Posted: Tue Jun 25, 2013 02:02 AM

Dear William and Antonio,

Thanks for your kind explanation. The point which I need to understand is speed and data source compatible.

If I need to use difference data source, The ADO is the choice but the coding are not much difference. It need ODBC on client PC with pure sql statement.

If I need to use MySql only, The TMySql is the choice, because no need ODBC at client PC and I can use the feature as William said. But change the data source, it will be the big change again.

I cannot search the speed test for both engine in the forum. I think TMySql is better than ADO because it no need to connect ODBC.

Do I understand correctly?

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: How difference between ADO and TMySql, if use MySql?
Posted: Tue Jun 25, 2013 06:26 AM

Dutch,

Maybe the speed is not an issue here as ADO is also very fast, but obviously without ODBC and ADO, I also think it has to be faster :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion