I had the same problem, I had a 800 MB database backup file, which required 320 GB of free space on the destination computer to restore.
It turned out that this was only because of the database log file, to make sure that the log file caused the problem, right-click on the proposed database and select the properties, then on the General tab, check the Database Size if it is huge go to the Files tab and go to the file path.
I Shrink command for the database and for files through the interface, but this did not help, the following query eventually saved me:
ALTER DATABASE DataBase_Name SET RECOVERY SIMPLE; GO DBCC SHRINKFILE(DataBase_Name_log, 200); GO ALTER DATABASE DataBase_Name SET RECOVERY FULL; GO
This means that you must query the database and then create the reverse file again.
NB: As you see in the query above, the database recovery mode must be SHRINKFILE Simple before executing SHRINKFILE .
source share