Solved

How to retrieve data from a remote DB

Posted on 1999-01-05
2
184 Views
Last Modified: 2010-04-04
I use Delphi 4.0 and a remote MySQL database.
I need an Object with which I can retrieve a huge amount of data. I've tried the NMHTTP(the post command) object but it stops recieving when the body is full(the size of the body is not enough) !! I need a way to throw away data till I get the data I need(perhaps byte 1000000 to 1002000).
0
Comment
Question by:Jeb
2 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 1354633
Hi Jeb,

if you can connect via ODBC, then you can use the whole palette of databasecontrols in delphi.

meikl
0
 
LVL 1

Accepted Solution

by:
apaparis earned 80 total points
ID: 1354634
You can use ADO to retrieve data (dataset, record, field) from remote server.
Install ADO ver >= 1.5c (better >= 2.0) {on both machines : client and remote server} and use ADODB.Recordset object to query the server.
You have to set in the connection string
remote provider = "MS REMOTE"
Remote Server = http://mywebserver
{for ADO ver >= 2.0 and MSSQL 7.0} [Bill changed parameters!]
Provider=sqloledb
Data Source=MachineName
Initial Catalog=Database Name
uid = user name
pwd = password

0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question