🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Table created via ADO/Jet twice as big as one created in Access

#3131
From: Mike C
Date: Fri, 15 Nov 2002 01:52
49 lines
2857 bytes
Not 100% sure here but you might try having a look at Compacting and
Repairing your database.  Try it from within MS Access first, on the
oversized table i .e. Open 'Big' Database, Tools->Database
Utilities->Compact and Repair Database.

Don't really know why this should happen, but if performing a C&R operation
resolved your problem then drop me an e-mail and I can send you a code
snippet to perform this operation under C++Builder.

By the way, are you creating your table from within Builder, via an ADO
connection?  Is so, how?  I would like to see the code if possible.

HTH,

Mike C

"Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net> wrote in message
news:gunaalqrneguyvaxarg.h5ezqm0.pminews@207.105.83.65...
> I've discovered that a table created via SQL through ADO ends up being
twice
> the size of one created in Access.
>
> The table definition looks identical in Access, but the packed database
size
> is twice what it should be, with nothing but the table (with no indexes
added
> yet).
>
> This has a very real (and very adverse) effect on performance whenever
> indexes aren't used.
>
> If I create the empty table in Access, and fill it up with a program via
ADO,
> the size is normal.  So it's not writing data with ADO, it's just creating
> the table.
>
> If I export that table from Access to another Access database, it's still
> twice the normal size.  If I copy and paste the table structure in Access,
> whatever it is that causes a bloated table is copied as well.
>
> Anyone have any idea why this happens?
>
>
> --
>  - Mike
>
> Remove 'spambegone.net' and reverse to send e-mail.
>
>
Technical Details
Message-ID: <3dd3e219@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!12.120.28.37.MISMATCH!attla2!ip.att.net!usc.edu!howland.erols.net!newspharm.inet.tele.dk.MISMATCH!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.media.kyoto-u.ac.jp!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!uunet!sac.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <gunaalqrneguyvaxarg.h5ezqm0.pminews@207.105.83.65>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,754b3f7a2db5d101,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-11-14 10:26:06 PST
From: "Mike C" <mikec@kr8.co.uk>
Newsgroups: borland.public.cppbuilder.database.ado
References: <gunaalqrneguyvaxarg.h5ezqm0.pminews@207.105.83.65>
Subject: Re: Table created via ADO/Jet twice as big as one created in Access
Date: Thu, 14 Nov 2002 17:52:57 -0800
Lines: 51
Organization: kr8
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 81.2.94.210
Message-ID: <3dd3e219@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1037296153 81.2.94.210 (14 Nov 2002 09:49:13 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!12.120.28.37.MISMATCH!attla2!ip.att.net!usc.edu!howland.erols.net!newspharm.inet.tele.dk.MISMATCH!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.media.kyoto-u.ac.jp!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!uunet!sac.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail