Article View: borland.public.cppbuilder.database.ado
Article #2087How to use ADOX to create tables and columns
From: hawk
Date: Mon, 03 Nov 2003 16:25
Date: Mon, 03 Nov 2003 16:25
16 lines
1418 bytes
1418 bytes
I use TADOXCatalog to create new mdb file as following.
WideString DataSource;
DataSource = "Provider=Microsoft.Jet.OLEDB.4.0";
DataSource = DataSource + ";Data Source=" + "d:\\test.mdb"
+";Jet OLEDB:Engine Type=4";
TADOXCatalog *ADOXCat = new TADOXCatalog(Owner);
ADOXCat->Create(DataSource);
My question is how to use TADOXCatalog ,TADOXTable and TADOXColumn to create
tables and fields.
If possible, please post some simple codes. Thanks!
Hawk
Technical Details
Message-ID:
<3fa6817b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,fd40af455f71879d,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-11-03 08:33:14 PST Reply-To: "hawk" <hawkcool@pchome.com.tw> From: "hawk" <hawkcool@pchome.com.tw> Newsgroups: borland.public.cppbuilder.database.ado Subject: How to use ADOX to create tables and columns Date: Tue, 4 Nov 2003 00:25:27 +0800 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 NNTP-Posting-Host: 210.202.209.171 Message-ID: <3fa6817b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067876731 210.202.209.171 (3 Nov 2003 08:25:31 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail