While deleting a large number of records, I get this error:
The transaction log for database 'databasename' is full
I found this answer very helpful, it recommends:
- Right-click your database in SQL Server Manager, and check the Options page.
- Switch Recovery Model from Full to Simple
- Right-click the database again. Select Tasks Shrink, Files Shrink the log file to a proper size (I generally stick to 20-25% of the size of the data files)
- Switch back to Full Recovery Model
- Take a full database backup straight away
Question: in step 3, when I go to shrink
> files
and choose log
from the file type
dropdown menu, it tells me that 99% of the allocated space is free.
Out of ~4500MB of allocated space, there is ~4400MB free (the data file size is ~3000MB).
Does that mean I'm good to go, and there is no need to shrink?
I don't understand this. Why would that be the case, given the warning I received initially?