Re: New to Delphi - Connecting to database using just code
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Mar 2008 09:46:59 +0100
"TD" <dlee@xxxxxxxxxxx> wrote in message
news:2a9f816f-6682-4413-8455-76ffecba8837@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am an MS Access programmer trying to move to Delphi. In VBA I can
do the following:
1 - Create connection to database, usually using DAO.
2 - Create a recordset using a select query to return a single record.
3 - Loop throught the fields of the record, assigning the values to
the corresponding fields on the form.
4 - Delete the recordset
5- Close connection to the database
Can I do the same thing in Delphi without using any of the database
components?
Yes. Import the DAO type library and code away. We have an application
that does just that. It starts from DBEngine, then goes on to Database
and Recordset interfaces. Works fine without a component in sight.
I know you use VCL components to work with a databases in
Delphi but do not these load the entire contents of a table into
memory, causing the application to run slow, say over a VPN connection?
Not necessarily. Not even usually, I'd guess.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- References:
- Prev by Date: Re: Middle pointer for double linked list.
- Next by Date: Re: D2006 Object inspector component
- Previous by thread: New to Delphi - Connecting to database using just code
- Next by thread: Re: New to Delphi - Connecting to database using just code
- Index(es):
Relevant Pages
|