🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Createing a blank database

#4869
From: Jerry Bloomfield (TeamB)
Date: Sun, 23 Sep 2001 18:51
27 lines
2314 bytes
On Wed, 19 Sep 2001 11:38:34 -0700, "Shawn Lammers"
<slammers@nospam.smartire.com> wrote:

>I have a program where the user can create a new Access database. Currently
>the program just uses the windows CopyFile command to copy a blank Access
>database to the new one the user wants and then starts using it. Is there a
>way using ADO that you can create a blank database directly?
>
>Similarly, is there a way to Compress and Repair access databases through
>ADO? I have done this through Visual Basic but can not figure out how to do
>it through ADO.

I am not an ADO expert,  but I do not believe that this is currently
possible using ADO.  I know it can be done using ODBC and I am fairly
certain it can be done using OLEDB,  but I have not found a method to do
this using ADO.

For an example of doing this using ODBC,  take a look at my entries in
CodeCentral.  I have two of them,  one to create/compact/repair an MDB file
using the ODBC API,  and another to use the ODBC API to create a C++ Class
much like the VCL TQuery component (but very rudimentary).

Jerry Bloomfield (TeamB)
-- 
http://www.teamb.com                                      JersWork@wwa.com
Please do *NOT* send private e-mail without prior permission (my anti-spam 
filters will probably just delete it anyway <g>)
Technical Details
Message-ID: <hkbsqtgrbs6ht9mbgsin4mlptocgbo6atu@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3ba8e563_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,9a2b7bc579614ea6
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-09-23 11:54:31 PST
From: "Jerry Bloomfield (TeamB)" <JersWork@wwa.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Createing a blank database
Date: Sun, 23 Sep 2001 13:51:26 -0500
Organization: LSVFA - Latest Software Version Freaks Anonomous
Message-ID: <hkbsqtgrbs6ht9mbgsin4mlptocgbo6atu@4ax.com>
References: <3ba8e563_2@dnews>
X-Newsreader: Forte Agent 1.8/32.553
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 157.238.74.53
X-Trace: dnews 1001271064 157.238.74.53 (23 Sep 2001 11:51:04 -0700)
Lines: 27
X-Authenticated-User: jerswork
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews