🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Creating Access database & tables

#915
From: Mike Ruskai
Date: Fri, 04 Mar 2005 21:42
38 lines
2295 bytes
An example of what I'm about to describe is here:

<http://home.earthlink.net/~thannyd/ado/oddado.exe>

It's a self-extracting RAR archive of a sample program with all source. 
Modifications to the project file will likely be required to to build it
yourself.

I'm using BCB6 Pro.

After creating an Access database, there are two options for creating tables
- via ADOX, and via SQL.

I discovered a while back that using SQL results in a bloated table, which is
not the case when using ADOX.  

What I mean by bloated is that the resulting database, after being compacted,
is substantially larger.  With tables containing a couple hundred thousand
records, performance suffers considerably.

The example program referred to above creates two Access databases with an
example table, one for each table creation method.  After being automatically
compacted, the resulting size is reported.  

On my machine, which has MDAC 2.7 and Jet 4.0 SP8 installed, the DB created
using ADOX is 4,689,920 bytes, and the DB created using SQL is 7,376,896
bytes.  With 10,000 test records, the figures are 53,841,920 and 81,141,760,
respectively.

Any ideas on what exactly is going?

On other matter, anyone know why ADOX silently fails if you attempt to create
a field of type adBoolean or adTinyInt?

--
 - Mike

Remove 'spambegone.net' and reverse to send e-mail.
Technical Details
Message-ID: <gunaalqrneguyvaxarg.icukaf1.pminews@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,3d01aa8c8ebe7a1f,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.database.ado
From: "Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net>
Message-ID: <gunaalqrneguyvaxarg.icukaf1.pminews@newsgroups.borland.com>
Date: Fri, 04 Mar 2005 16:42:15 -0500 (EST)
Reply-To: "Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net>
X-Newsreader: PMINews 2.00.1205 For OS/2
Organization: TLF
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Subject: Creating Access database & tables
NNTP-Posting-Host: 65.164.22.60
X-Trace: newsgroups.borland.com 1109972547 65.164.22.60 (4 Mar 2005 13:42:27 -0800)
Lines: 40
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail