🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: MS Access

#2259
From: Viatcheslav V. Vassiliev
Date: Sat, 20 Sep 2003 06:19
55 lines
2396 bytes
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 may also need to add (for BCB6):

#include <comobj.hpp>

namespace System
{
 void __fastcall CheckSafecallResult(HRESULT hr)
 {
  OleCheck(hr);
 }
}

//----------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)


"Roberto Meneghni" <roberto@separationsystems.com> �������/�������� �
�������� ���������: news:3f6b5e5d$1@newsgroups.borland.com...
> Hello,
>
> Is there a way to create an MS Access database using BCB5 Professional
> edition? I'm able to add tables to an existing MDB, but I would like to
> create the MDB as need it.
>
> If I need to upgrade to version 6, can I stay with the Professional
edition
> or do I have to go to the Enterprise edition?
>
>
> Thanks,
>
> Roberto Meneghini
>
>
>
>
Technical Details
Message-ID: <3f6bf18b$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!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f6b5e5d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,bad1e73682e9cb05
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-09-19 23:40:32 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3f6b5e5d$1@newsgroups.borland.com>
Subject: Re: MS Access
Date: Sat, 20 Sep 2003 10:19:55 +0400
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.234.218.42
Message-ID: <3f6bf18b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1064038795 213.234.218.42 (19 Sep 2003 23:19:55 -0700)
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!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail