Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shrink the log
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Titre:
Divers
Thread ID:
00691244
Message ID:
00691404
Vues:
13
This message has been marked as the solution to the initial question of the thread.
Try truncating the log first. Use

BACKUP LOG mydb WITH TRUNCATE_ONLY

You WILL have to perform a full database backup afterwards. You might want to verify that you don't have any open transactions that are keeping the log from being shrunk and truncated. Use DBCC OPENTRAN().

-Mike

>When I execute a dbcc shrinkfile(MyDatabase,) I get the error message
>"Cannot shrink log file 2 (MyDatabase) because all logical log files are in use."
>I have tried things like taking the database off and on line and stopping and restarting the database to try to get rid of this error.
>
>Anyon know how to deal with this ?
>
>Thanks,
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform