Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Shrink DB

Author  Topic 

beza
Starting Member

16 Posts

Posted - 2009-07-01 : 06:06:33
Hey

my DB had reached 4 GB and the log File almost 5
I read somewhere about the shrink DB command .. ran it and it was working great.

afterward I continued reading a little bit more and it appears to be something bad to do ... most of the threads I read in were saying no to this command ...

can someone please explain this to me ... and is there any chance I could have screwed my DB because of it ?

first I ran the command with truncate only, afterward with just the DB name but it was taking too long so I stopped it after 10 minutes

Thanks a lot!

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2009-07-01 : 09:10:34
You didn't mess up your DB, but shrinking is not recommended. Why do you want to shrink? Why do you think that shrinking's going to do anything?

From the size of the log in comparison to the data, I'm guessing full recovery and no log backups. Is that the case?
If so, [lease read through this - [url]http://www.sqlservercentral.com/articles/64582/[/url]

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -