Re: Runtime adding files to database via a TADOConnection - how?
- From: "Mike Shkolnik" <mshkolnik2002@xxxxxxx>
- Date: Sun, 28 May 2006 22:06:14 +0300
Just execute the CREATE TABLE statement to create the new table in your ADO
connection
--
With best regards, Mike Shkolnik
E-mail: mshkolnik@xxxxxxxxxxxxx
WEB: http://www.scalabium.com
"Pontus Berg" <pontus@xxxxxxxxxxxxxxxxx> wrote in message
news:447995c0@xxxxxxxxxxxxxxxxxxxxxxxxx
Howdy!
If I have connected to an Access database on disk, via a TADOConnection
component, then how do I add fields at runtime? I find no method that
would enable me to do it. Adding via SQL - is that it? (This is no SQL
group, but any hints?)
Also, if a TADODataset contains the field I want to add, but the base on
disk doesn't, how do best I read the characteristics (type and so on) of
the field from the Dataset and add it to the base on disk? Again, this
must all be at runtime!
Identifying the fields missing on disk and finding the name of it from
the Dataset is under control. What I now need help with is "only"
identifying the datatype of the field and how to add it to the database
on disk.
/Pontus
Setup: Delphi 2006, Windows
.
- Follow-Ups:
- Re: Runtime adding files to database via a TADOConnection - how?
- From: Michael Jacobs
- Re: Runtime adding files to database via a TADOConnection - how?
- References:
- Runtime adding files to database via a TADOConnection - how?
- From: Pontus Berg
- Runtime adding files to database via a TADOConnection - how?
- Prev by Date: Runtime adding files to database via a TADOConnection - how?
- Next by Date: Re: how to show that there is a detail record
- Previous by thread: Runtime adding files to database via a TADOConnection - how?
- Next by thread: Re: Runtime adding files to database via a TADOConnection - how?
- Index(es):
Relevant Pages
|