To reduce the physical MS SQL Transaction Log Size, the transaction log needs to be backed up first before it can be shrinked.
In this example we want to reduce the transaction log size of Dreams database.
Firstly, we backup the transaction log using the following command:
BACKUP LOG Dreams
TO disk = ‘D:\backups\DreamsLogBackup.log’
Next, the transaction log is shrinked by using the following command
Repeat the backup and the shrink of transaction log commands above if the transaction log size doesn’t change.