I restored a database with a 1.5gb .bak file. Everything works fine except the restored database now takes 64gb of space.
I've heard about shrinking databases and log files but how should I find out what is it that takes so much space and what I can "shrink" so that the data itself won't change. I need this production backup data in my development environment as it is.
I don't need full logs in the development environment where I'm doing the restoring. How to find out is it the data or the logs that take more space?
I'm using SQL Server Management Studio 2017
Maybe logs?
I suggest you to analyze if that fits you. Make the backups much shorter: See More
BACKUP DATABASE XXXXX TO DISK 'C:\XXX.bak' WITH COPY_ONLY
You can also change the Recovery Model from Full (Default) to Simple, after the restore.
Then SHRINK it