Re: Connect over internet



"Edwin Walker" <1enwalker@xxxxxxxxxx> wrote in message
news:44959e40@xxxxxxxxxxxxxxxxxxxxxxxxx
If that is what you are trying to do, I would suggest that you look at a
Thin solution like ASTA, RemObjects, RealThinClient and KbmMW.

You could do it with just ADO, but ADO is very fat and slow over the net.

I used ADO to connect to a MySQL database over the Net.
I set up the "MyODBC" driver on the client machine then used the
"Microsoft OLEDB Provider for ODBC" for the ADO connection.

While the program was in development I naturally set up a MySQL
server running locally on my LAN first with a database with the same
structure (and similar data) to the target server so I could test the
application before deploying against the "real" mySQL server.

MySQL provides a neat capability to optionally start it using a log file
which logs every command sent to it. It made fascinating reading.
What I learnt from this was:
1) Everything you do with the ADO dataset ultimately is transmitted
across the network as "pure text" SQL command, ie. either a
SELECT query or an INSERT, UPDATE, or DELETE query.

2) Something going on behind the scenes (either the ODBC driver
or the OLEDB provider or somewhere else) is very clever in its
construction of the appropriate SQL command for each operation.
eg. it automatically identifies the keys to the table so an UPDATE
SQL command can uniquely identify which row to update.

3) It automatically does its own caching. I found that, when stepping
through the rows of a large table (eg using DBNavigator), the
SELECT statement requests a *few* rows at a time, not just one,
but not all of the rows in the table.

So, although working with a database across the 'Net may be slow,
I can't see how anything can do it better than ADO does. In the
end it is transmitting its requests across the wire as pure SQL stmts.
How efficiently the returned data is packaged (for SELECT stmts)
is not dependent on the access technology, but by the server itself.

Ian.


Edwin

"Alan T" <alanpltseNOSPAM@xxxxxxxxxxxx> wrote in message
news:44954435@xxxxxxxxxxxxxxxxxxxxxxxxx
Yes, what I am trying to do is writting an application using TADO
component
to connect to a remote server via internet.
"Guillem" <guillemvicens-nospam@xxxxxxxxxxxxxxxxxx> wrote in message
news:xn0enkzax5lwyd000@xxxxxxxxxxxxxxxxxxxxxxxxx
Edwin Walker wrote:

Maybe he is asking if you can connect using ADO over the internet.


good point :)


--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam








.



Relevant Pages

  • Re: ADO/MYSQL
    ... load xml with data coming from MySQL. ... load f2.xml and send changes to MySQL ... connect to MySQL using ADO ...
    (borland.public.delphi.database.ado)
  • Re: Boolean typ in Tabellenspalte richtig anzeigen
    ... > Recordset öffne und dieses dann einen Listenfeld zuweise, ... In MySql ist das Feld als tinyintdeklariert! ... Vielleicht versucht ADO einen unsigned tinyint zu verwenden. ... Next by Date: ...
    (microsoft.public.de.access)
  • Re: Experiences with MySQL and ADO?
    ... I tested ADO with MySQL some time ago and ADO worked well only via ... > I'd be grateful if anyone could share experience with MySQL, ... > lot of problems with bugs in MySQLDAC. ... > Just wondered if anyone had a positive experience to report on this latter ...
    (borland.public.delphi.database.ado)
  • Re: ADO und MySQL
    ... > verwendest Du in Deinen Datenbanken beim Zugriff auf MySQL also beide ... MySQL verwende ich derzeit nur für Tests. ... Aber auch beim MS SQL-Server verwende ich DAO und ADO parallel. ...
    (microsoft.public.de.access.clientserver)
  • Re: SQL Server extremely slow
    ... terms of what is meant by a dis-connected ado recordset. ... table in a mdb file could be considered disconnected from the server ... Well, ok, but keep in mind the disk drive is on sql server! ... 10 reocrds from the server via odbc does not produce more ...
    (comp.databases.ms-access)