Solved

How to retrieve data from a remote DB

Posted on 1999-01-05
2
181 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now