sqlserver transaction log full
To see what's going on with our transaction log for our database run the following command
DBCC SQLPERF(LOGSPACE);
To resolve this we should always try to backup our transaction log using
BACKUP LOG MyDB
TO DISK = 'C:\Backups\MyDB_Log.trn';
If we don't care about transaction log then
ALTER DATABASE MyDB SET RECOVERY SIMPLE;
DBCC SHRINKFILE(MyDB_Log, 1); -- shrink to 1 MB or desired size
ALTER DATABASE MyDB SET RECOVERY FULL; -- if you want to return to full recovery
Comments