🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2379

How to create an ADO Dataset and TABLE via C++ code

#2379
From: Steve
Date: Fri, 04 Jul 2003 15:30
24 lines
1683 bytes
Hi all,
I want to use ADO to develop a little database application, just to try and
make some experience with ADO.

I use C++ Builder Professional 6.

I've created an Access "mdb" database file and a little VCL application that
make me use this database, via ADODataSet, ADOTable and so on. This work all
ok.

But now I want to create a new mdb file inside the application, and not via
Access.

How this can be done ?

I've to use ADODataSet->FieldDefs definitions  to setting up all the filelds
(like BDE style?)
But ther's not the CreateTable method in the ADOTable ...

Or I've to use the ADOCommand component and use an SQL statement?
And in this case, there are some samples?

Thanks in advance,
Steve
Technical Details
Message-ID: <3f058fa2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,662d1f202f8afaa5,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-07-04 07:37:21 PST
From: "Steve" <sdardari@_NOSPAM_rimini.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How to create an ADO Dataset and TABLE via C++ code
Date: Fri, 4 Jul 2003 16:30:42 +0100
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 62.211.32.84
Message-ID: <3f058fa2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057329058 62.211.32.84 (4 Jul 2003 07:30:58 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail