I've got a log file which has grown to 32gig and filled my hard drive. So i've done a transaction log backup, and now when i do "DBCC SQLPERF ( LOGSPACE )" it says that 99% of my log file is empty space which is great:
DBCC SQLPERF ( LOGSPACE ) Database Name Log Size (MB) Log Space Used (%) Status abc 32140.02 0.3069714 0
Now i want to shrink the file (it should be only a couple of megs!!!), so i do:
DBCC SHRINKFILE ( abc_log )
In the query results in SSMS, i get the following:
Results tab: DbId FileId CurrentSize MinimumSize UsedPages EstimatedPages 14 2 4113923 128 4113920 128
And in the 'Messages' tab, this little piece of info:
Cannot shrink log file 2 (abc_log) because all logical log files are in use. (1 row(s) affected) DBCC execution completed. If DBCC printed error messages, contact your system administrator.
What's going on?