MasterRacker
New member
I have a SQL 2005 database that has never had any maintenance performed on it. I'm trying to find vendor info on recommended DB settings, and so far I haven't come up with much.
The mdf is 170MB and the LDF is 71GB. Autoshrink is off and I don't think I want to turn it on due to fragmentation concerns.
I want to run DBCC SHRINKFILE against the log file. This KB: states I should back up the log first. Can that backup be run without putting the DB into single user mode? Also, the the shrinkfile command wants a target size and the KB article says that should be the size of at least 2 virtual log files. How do I determine how large my virtual logs are?
Also looking here: I ran the free space query and it shows only 2GB free in the log file. I'm guessing I would get more free space by backing up the log file?
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
The mdf is 170MB and the LDF is 71GB. Autoshrink is off and I don't think I want to turn it on due to fragmentation concerns.
I want to run DBCC SHRINKFILE against the log file. This KB: states I should back up the log first. Can that backup be run without putting the DB into single user mode? Also, the the shrinkfile command wants a target size and the KB article says that should be the size of at least 2 virtual log files. How do I determine how large my virtual logs are?
Also looking here: I ran the free space query and it shows only 2GB free in the log file. I'm guessing I would get more free space by backing up the log file?
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]