🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Another Compact Database Problem!!!

#5282
From: Mike Collins
Date: Thu, 14 Jun 2001 09:48
22 lines
1550 bytes
Hi again, posted a message a couple of days ago, regarding compacting and
repairing MS Access databases.  Im using ADO and MS Jet Engine 4.

Jerry Bloomfield pointed me to an application he had posted in CodeCentrol
but it doesn't seem applicable as Im not using ODBC.  I found some sample
code from Microsoft but I can get any joy:

#import "c:\Program Files\Common Files\System\Ado\msado15.dll" no_namespace
#import "c:\Program Files\Common Files\System\Ado\msjro.dll" no_namespace

try
{
    IJetEnginePtr jetPtr(__uuidof(JetEngine));
    jetPtr->CompactDatabase( database params i.e. provider & location)
}
catch()
{
}

-any idears anyone, Im getting desperate :-)

Thanks Mike
Technical Details
Message-ID: <3b289f06$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,665caa8cc0e337c5,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-06-14 04:26:14 PST
From: "Mike Collins" <mcollins@tynetec.demon.co.uk>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Another Compact Database Problem!!!
Date: Thu, 14 Jun 2001 10:48:21 +0100
Lines: 24
Organization: TyneTec
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 194.222.126.108
Message-ID: <3b289f06$1_2@dnews>
X-Trace: dnews 992517894 194.222.126.108 (14 Jun 2001 04:24:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews