Article View: borland.public.cppbuilder.database.ado
Article #3147Re: How do i create a .mdb file - continuation
From: Brian
Date: Wed, 20 Nov 2002 20:36
Date: Wed, 20 Nov 2002 20:36
21 lines
1596 bytes
1596 bytes
How do you create the tables and indicies? "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> wrote: >Import ADOX tyle library (Project\Import type library in menu - "Microsoft >ADO Ext. 2.x for DDL and Security"). It is good to add "ADOX" to class names >(i.e. change TTable to TADOXTable etc.). > > >#include <ADOX_tlb.hpp>; > >.... > WideString dbName = > "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + >ExtractFilePath(ParamStr(0)) + "test.mdb"; > > Adox_tlb::TCOM_Catalog cat = CoCatalog::Create(); > cat->Create(dbName.c_bstr()); >.... > >You can not use SQL to create database in MS Jet. >
Technical Details
Message-ID:
<3ddbf269$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<3dd42aa7@newsgroups.borland.com> <3dd4b4d0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,f9436a8943db1d6f X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-11-20 12:38:54 PST From: "Brian" <brian.plotkin@fnc.fujitsu.com> Sender: "Brian" <brian.plotkin@fnc.fujitsu.com> Reply-To: "Brian" <brian.plotkin@fnc.fujitsu.com> Subject: Re: How do i create a .mdb file - continuation Newsgroups: borland.public.cppbuilder.database.ado X-User-Info: 204.253.82.10 204.253.82.10 X-Forwarded-For: 167.254.147.115 References: <3dd42aa7@newsgroups.borland.com> <3dd4b4d0@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ddbf269$1@newsgroups.borland.com> Date: 20 Nov 2002 12:36:57 -0800 X-Trace: newsgroups.borland.com 1037824617 207.105.83.65 (20 Nov 2002 12:36:57 -0800) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail