Article View: borland.public.cppbuilder.database.ado
Article #1767Re: Compact an Access database
From: Viatcheslav V. Vassiliev
Date: Mon, 23 Feb 2004 16:01
Date: Mon, 23 Feb 2004 16:01
40 lines
2710 bytes
2710 bytes
You can not compact MS Access database when some app is connected to it even from MS Access. For other DBMS "compact" may be not applied. Database may be in some files, data and log files could be different files and working with data and log files is done with different functions. However unlike MS Access "big" DBMS can re-use space, i.e. if you delete many rows the space they had occupied could be used again. You may backup, shrink database (on MS SQL Server you should be only one user connected to database). On Interbase you may backup database when there are many users connected but you will backup into another file and you will continue to use existing (not compressed) file. //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "Steve Aletto" <steve_alettoANTI@SPAMhotmail.com> �������/�������� � �������� ���������: news:4039f5fa$1@newsgroups.borland.com... > Thanks Viatcheslav, > > > When compacting Access db it must be disconnected. > > Isn't there a way to do it while the db is connected and the > application is reading from/writing to it? The problem is > that I have an application _always_active_ that must add and > delete records _very_often_. > > - How should I do under that (or similar) condition? > - Does a different DBMS such as MySQL or SQL server have the > same "limitation"? > > Thanks again, > > Steve. > >
Technical Details
Message-ID:
<403a23bf@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4039bd8c@newsgroups.borland.com> <4039db00$1@newsgroups.borland.com> <4039f5fa$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,f68b0297659fe81f X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-02-23 08:06:30 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <4039bd8c@newsgroups.borland.com> <4039db00$1@newsgroups.borland.com> <4039f5fa$1@newsgroups.borland.com> Subject: Re: Compact an Access database Date: Mon, 23 Feb 2004 19:01:05 +0300 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.234.218.42 Message-ID: <403a23bf@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077552063 213.234.218.42 (23 Feb 2004 08:01:03 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail