I am running sql 2000 and have a hard drive space issue. One of the log files has grown to large and I need to shrink it. I am running the following script.
(The database in question has the Recovery Mode set to full)
backup log dbName with truncate_only
go
dbcc shrinkfile ('dbName_Log', 1000)
However I get the following message: Cannot shrink log file 2 (dbName_Log) because all logical log files are in use.
I don't understand I thought that truncate_only truncated all the inactive portion of the log how can they all still be in use and what can I do to fix it?
Thanks in advance!
(The database in question has the Recovery Mode set to full)
backup log dbName with truncate_only
go
dbcc shrinkfile ('dbName_Log', 1000)
However I get the following message: Cannot shrink log file 2 (dbName_Log) because all logical log files are in use.
I don't understand I thought that truncate_only truncated all the inactive portion of the log how can they all still be in use and what can I do to fix it?
Thanks in advance!