I have a database I wanted to deploy with my application. So I emptied it, but the size is still HUGE! Even after running DBCC SHRINKFILE (1, 1)
and DBCC SHRINKDATABASE (1, 1)
Can anyone help?
databasesql-server-2008
I have a database I wanted to deploy with my application. So I emptied it, but the size is still HUGE! Even after running DBCC SHRINKFILE (1, 1)
and DBCC SHRINKDATABASE (1, 1)
Can anyone help?
Best Answer
If the database is set to use the "Full" recovery mode, then you will not be able to shrink it until you have backed up the transaction logs.
If you don't require the recoverability provided by this recovery mode, set it to Simple, and you should be able to shrink the database without requiring the log backup.