Article View: borland.public.cppbuilder.database.ado
Article #3309Re: Compact Access Database
From: boll
Date: Wed, 23 Oct 2002 08:44
Date: Wed, 23 Oct 2002 08:44
47 lines
2569 bytes
2569 bytes
Thanks, it's look great. Is it right, that this Header-File is in the MDAC
SDK?
J�rg
"Vassiliev V.V." <news@vassilievvv.mtu-net.ru> schrieb im Newsbeitrag
news:3db64003@newsgroups.borland.com...
> Import
> Microsoft Jet and Replication Objects 2.x Library
>
> #include <JRO_TLB.h>
> ...
> void __fastcall TForm1::Button1Click(TObject *Sender)
> {
> IJetEngine * JetEngine = NULL;
> CoCreateInstance(CLSID_JetEngine, NULL, CLSCTX_INPROC_SERVER,
> IID_IJetEngine,
> (void**) &JetEngine);
>
> WideString Source = "Provider=Microsoft.Jet.OLEDB.4.0;"
> "Data Source=C:\\Test\\Test.mdb;";
> WideString Dest = "Provider=Microsoft.Jet.OLEDB.4.0;"
> "Data Source=C:\\Test\\Compacted.mdb;";
>
> JetEngine->CompactDatabase(Source.c_bstr(), Dest.c_bstr());
>
> JetEngine->Release();
> }
>
>
> You can compact database from one file into another. There should be no
> users connected to database.
>
> ----------------------------------------------------------------
> Regards,
> Viatcheslav V. Vassiliev
> http://www.oledbdirect.com
> The fastest way to access MS SQL Server and MS Jet (MS Access) databases.
>
> "boll" <bollitec@web.de> ???????/???????? ? ???????? ?????????:
> news:ap39i6$8mk$04$1@news.t-online.com...
> > I look for an simple "ADOCommand" to compact an AccessDB truh an
> > ADOConnection.
> >
> > Has anybody an idea?
> >
> >
>
>
Technical Details
Message-ID:
<ap5nks$jdh$03$1@news.t-online.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!easynet-quince!easynet.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mailReferences:
<ap39i6$8mk$04$1@news.t-online.com> <3db64003@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,f0d3e3fdee8f87de X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-10-23 03:00:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!easynet-quince!easynet.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: "boll" <bollitec@web.de> Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: Compact Access Database Date: Wed, 23 Oct 2002 10:44:21 +0200 Organization: T-Online Lines: 49 Message-ID: <ap5nks$jdh$03$1@news.t-online.com> References: <ap39i6$8mk$04$1@news.t-online.com> <3db64003@newsgroups.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1035362781 03 19889 QDp7bx2ESlAaRJ 021023 08:46:21 X-Complaints-To: abuse@t-online.com X-Sender: 510008922821-0001@t-dialin.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106