February 4, 2010 at 9:49 pm
Hi guys,
I have a question.
I have a customer database. I restored it on my SQL Server 2005. After I restored the backup file I have got one mdf file 35GB and two ldf files 32GB each. I would like to get rid of big log files.
I have tried to detach the database, rename the log files and to attach the database with no log files in hope that it will create a new small log file. This did not work. It does not attach the database without original big log files.
Then I was trying to truncate log files and did not work again.
What else I can do in order to get rid of two big log files and replace it with one small one.
Thanks in advance.
February 5, 2010 at 1:58 am
Check the recovery model for the database. Is it simple or full?
Set it to simple, then shrink the log files.
-- Gianluca Sartori
February 8, 2010 at 6:49 am
You shrink the files with DBCC Shrinkfile
http://msdn.microsoft.com/en-us/library/ms189493%28SQL.90%29.aspx
Craig Outcalt
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply