Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to truncate a transaction log file?
Message
De
19/09/2001 12:21:57
 
 
À
19/09/2001 11:25:14
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00558317
Message ID:
00558392
Vues:
27
>> BACKUP LOG myDatabaseName WITH TRUNCATE_ONLY
>
>The command completed successfully. But the size of log file
>on the disk is not changed.
>
>MyData_Data.MDF 62528kb
>MyData_Log.LDF 1110720kb
>
>Anyway, is it normal the log file is so huge?

Truncation does not physically reduce the size of the log file. For that, run
USE myDatabaseName
DBCC SHRINKFILE (myDatabaseName_Log)
The log file retains all transactions executed on your database unless you set options to control that, that's why it may be bigger than the actual database.

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform