|
|
Question : Reduce Size of SQL Server 2000 Database Log File
|
|
I am using Microsoft SQL Server 2000, now the log file size (.ldf) increase quickly up 50GB and the hard disk size can not handle anymore. I tried to backup the log file into a partition size only 20GB, but the error come up as "Write on E:\DSL_Bakup_Log_14032007 failed, status =112.". I think might be the space is not enough to store the backed up log. I tried to bakup into network mapped drive, but SQL does not show the mapped drive, shows only local drive.
What is the Shrink database? How it works?
Please advice as I want to reduce the log file size as now I don't have enough space to store.
Thanks, Vannak
|
Answer : Reduce Size of SQL Server 2000 Database Log File
|
|
Could be because you have uncommited transactions in the log file. so better do the following
from query Analyzer
USE UserDB GO dump transaction UserDB with no_log go DBCC SHRINKFILE (LogFileName, 100) GO
|
|
|
|
|