One of users tried to make a backup on the database from the system and she received the following strange Error
Exception caught in: ExecuteStoredProc: There is insufficient free space on disk volume 'C:\' to create the database. The database requires 44621430784 additional free bytes, while only 36018462720 bytes are available. Problems were identified while planning for the RESTORE statement. Previous messages provide details. RESTORE DATABASE is terminating abnormally.
but i know i have 300 gig Free space on the c: Drive of that server. But when i get into the server , i realized that one of the database log files has grown to a size that should be impossible for it. it was 80 GIG, i used the following sql to truncate the log file
DBCC SHRINKFILE('LogFileName', 1)
BACKUP LOG Database_Name WITH TRUNCATE_ONLY
DBCC SHRINKFILE('LogFileName', 1)
and to find the log file name , use the following Query
select name from sys.database_files where type = 1
Thank you
Thank you for posting at Dotnetfunda
[Administrator]