Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shrinking Log file
Message
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Shrinking Log file
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01608796
Message ID:
01608796
Views:
38
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
Next
Reply
Map
View

Click here to load this message in the networking platform