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
Why does the clipboard stop working on occasion?
-2147467259 [Microsoft][ODBC SQL Server Driver][DBNETLIB]Connectio<wbr />nWrite(Wra<wbr />pperWrite(<wbr />))
How do I get MS Access 2000 (Office) updates sr1a & sp3 to install ?
How do you restore a smaller partition image of Windows XP onto a larger disk and still have Windows XP boot up recognizing the larger disk size?
Using rtrim in my query
Unable to join a Win2008 server to a Windows 2008 Domain
Script Error; line 2057; res://ieframe.dll.preview.<wbr />js
Modal Window postback opens new windows instead of posting to itself!
How to configure a WSUS in 2008 Active Directory Domain
C# equation to Compress string