Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to shrink SQL Database thru VFP
Message
De
07/12/2004 08:25:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00967047
Message ID:
00967439
Vues:
11
>How to shrink SQL database thru VFP ?

The trick I found somewhere involves three steps:

- detach database
sp_detach_db <your db name here>
- delete its logfile
- attach it as a single file:
sp_attach_single_file_db @dbname = '<your db name here>', 
   @physname = '<fullpath to>.mdf'
SQL will complain it's missing a logfile and will create a new one.

I've seen ten gig logfiles shrink to half a meg.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform