Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shrinking Log file
Message
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Shrinking Log file
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01608796
Message ID:
01608796
Vues:
37
Hi,

I keep copies of my customers' SQL Database on my computer; not as a back up. I want to reduce the LOG files for these databases to the minimum possible. I just want to be sure that my plan has no potential issues. My plan is as follows:
1. set recovery mode for each one of these databases to Simple.
2. issue command
use [MyDatabase]
go
dbcc shrinkfile([MyDatabase_log.ldf],1)
Anybody sees a potential problem? (as I said, I don't need to recover these databases to any point in the past).
TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform