If your SQL transaction log-file of your BizTalk360 database is taking lots of space, follow the steps as shown below to bring down the size of the log file.


1. Check For Disk Usage

The first step is to carry out a check to find out how much of disk space is being used by the transaction log file.

  1. In the SQL Server Management Studio, right click on the BizTalk360 database name and select Reports > Standard Reports > Disk Usage


  2. Verify the transaction log space usage when the log file size is more than 1GB. The transaction log size can be seen from the below picture.Only when the log file is large (say 1GB or more), it is a waste of disk space to have a large log file with much unused space.If you find a huge percentage of unused space, you need to shrink the size of the transaction log file to release unallocated space. Refer Section 2 for the process of shrinking the transaction log file size.


2. Shrink The Transaction Log File Size

To reduce the size of the transaction log file size, follow the steps as shown below:

  1. In the SQL Server Management Studio, right click on the BizTalk360 database name and select Tasks > Shrink > Files
  2. Select the file type and file name
  3. Select the Release unused space radio button. Selecting this option causes any unused space in the file to be released to the operating system and shrinks the file to the last allocated extent. This reduces the file size without moving any data.
  4. Click OK



5. You can also create a SQL script for shrinking the transaction log file and execute the script.



Even after performing the above steps, if you are not able to truncate the size of the log file size, it could be because the transaction log grows to be inordinately large on a database that's in FULL or BULK_LOGGED recovery mode. This happens after a database backup has been taken, which switches the log into a mode where it won't truncate until it's been backed up. In these circumstances, if you do not take a transaction log backup, the log file size will continue to grow. 

Change the recovery mode to SIMPLE. The transaction log is automatically truncated when the database is using the simple recovery model. If you must remove the log backup chain from a database, switch to the simple recovery model.