Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release ADO Connections
Message
 
À
23/08/2000 03:23:45
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00407257
Message ID:
00408165
Vues:
24
>>Aren't there any other user or apps in that database? How do you compact the database? I think you are using ADO, see this: http://support.microsoft.com/support/kb/articles/Q230/5/01.ASP
>
>I tried the suggested method from the web site, but hit error as follows:
>
>Could not find installable ISAM

You need ADO 2.1 or higher.


>
>But I use the other method is OK as follows:
>
>DBEngine.CompactDatabase "c:\TTD.mdb", "c:\TTDComp.mdb", dbLangGeneral, _
>dbVersion40, ";pwd=abc"
>Kill "c:\TTD.mdb"
>Name "c:TTDComp.mdb" As "c:\TTD.mdb"
>
>Any difference between these two methods, which is better one? Thanks.

Both have the same result. If you use ADO, I prefer the first way. If you use DAO, I prefer the DBEngine way.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform