Article View: borland.public.cppbuilder.database.ado
Article #2095Re: How to use ADOX to create tables and columns
From: Mike Crapo
Date: Tue, 04 Nov 2003 15:50
Date: Tue, 04 Nov 2003 15:50
24 lines
1644 bytes
1644 bytes
Why are you using ADOX to create your tables and fields, when you can use a SQL query to do the same?? On Tue, 4 Nov 2003 00:25:27 +0800, "hawk" <hawkcool@pchome.com.tw> wrote: >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:
<hkifqv0hhacamvcupu5b3g7jkv82afls1m@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fa6817b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,fd40af455f71879d X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-11-04 08:10:50 PST From: Mike Crapo <> Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: How to use ADOX to create tables and columns Date: Tue, 04 Nov 2003 09:50:31 -0600 Message-ID: <hkifqv0hhacamvcupu5b3g7jkv82afls1m@4ax.com> References: <3fa6817b@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 208.178.101.226 X-Trace: newsgroups.borland.com 1067961232 208.178.101.226 (4 Nov 2003 07:53:52 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail