Microsoft
Software
Hardware
Network
Question : SQL 2008 Log file
We have a SQL 2008 database in Simple Recovery mode. The log file right now is 20 GB which seems a little large. Is there a command/task we can use to bring it down to size?
Thanks,
Dean
Answer : SQL 2008 Log file
change the recovery mode to 'Simple'
then run this
dbcc shrikfile ( log_fileName, 0 )
change back the recovery mode to full
also make sure that you schedule a job for backing up the log file at least once in 30 minutes
Random Solutions
Is there a way to access the Office clipboard using Visual Basic in Word?
C# 3.0 - Generic Bulk Copy
How to format SQL query string in vb.net for a multi-field index in Access??
How can I automatically (VBA) insert a comment when certain condition exist in a cell;
Open and Print PDF file
On timer event passes it's own time
Office 2007 Product ID
protecting decompiling of ocx in browser
How do I get a DataGridView to refresh after I modify the DataSource?
Execute Script On Shutdown BEFORE network connections close