I have a log file that is using up all the space on disk where it resides, so i would like to shrink it but no matter how hard I try I can't get it to work. Here's what I've done.
* Performed a full backup
* Performed a Transaction log backup
* Ran the DBCC SHRINKFILE(file_name, NOTRUNCATE)
* Ran the DBCC SHRINKFILE(file_name, TRUNCATEONLY)
* I've also tried the shinking options from the gui
When I run DBCC SQLPERF(LOGSPACE) I get the following output:
Database Name Log Size (MB) Log Space Used (%) Status
-------------- ------------- ------------------ -----------
master 1,242188 51,88679 0
tempdb 109,7422 30,44778 0
model 5,054688 96,52241 0
msdb 4,117188 32,73245 0
agr55 14719,37 4,908091 0
agrhlp 2118,742 2,898402 0
Iget the following message when I run the DBCC SHRINKFILE(file_name, TRUNCATEONLY) or NOTRUNCATE:
Cannot shrink log file 2 (file_name) because all logical log files are in use.
DbId FileId CurrentSize MinimumSize UsedPages EstimatedPages
------ ----------- ----------- ----------- ----------- --------------
5 2 1884080 38400 1884080 38400
So it seams that I can't shrink it since all logical logfiles are active.
Is there a way to solve this?
* Performed a full backup
* Performed a Transaction log backup
* Ran the DBCC SHRINKFILE(file_name, NOTRUNCATE)
* Ran the DBCC SHRINKFILE(file_name, TRUNCATEONLY)
* I've also tried the shinking options from the gui
When I run DBCC SQLPERF(LOGSPACE) I get the following output:
Database Name Log Size (MB) Log Space Used (%) Status
-------------- ------------- ------------------ -----------
master 1,242188 51,88679 0
tempdb 109,7422 30,44778 0
model 5,054688 96,52241 0
msdb 4,117188 32,73245 0
agr55 14719,37 4,908091 0
agrhlp 2118,742 2,898402 0
Iget the following message when I run the DBCC SHRINKFILE(file_name, TRUNCATEONLY) or NOTRUNCATE:
Cannot shrink log file 2 (file_name) because all logical log files are in use.
DbId FileId CurrentSize MinimumSize UsedPages EstimatedPages
------ ----------- ----------- ----------- ----------- --------------
5 2 1884080 38400 1884080 38400
So it seams that I can't shrink it since all logical logfiles are active.
Is there a way to solve this?