Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Backup Shrink Logs
Message
De
28/01/2013 19:00:46
 
 
À
28/01/2013 18:39:11
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Copies de sauvegarde
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01564409
Message ID:
01564424
Vues:
33
>>Someone has asked me a question about backups and it has been too long since I have worked with MSSql. He has an application that has about 50 databases and there is a script that runs every night to back everything up except, he has not been truncating the logs. No they are about to run out of disk space and need to recover most of the space used by the logs. Here one line of the script he is using now.
>>
>>
>>BACKUP DATABASE DATABASE_1 TO DISK = 'd:\SQLBACKUP_day1\DATABASE_1.bak' With INIT
>>
>>
>>It is my understanding that "truncate log" does not shrink the file. How can I automate the shrink file as well?
>
>I use something like this:
>
>
>Alter Database MyDatabase Set Recovery Simple
>
>Use MyDatabase
>
>DBCC ShrinkFile (MyDatabase_Log,1)
>
Hi Michel,

I had read somewhere recently that shrinkfile was a bad idea. Have you had any problems with it?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform