Too large size of EMS or HASP database even if data is less

If large number of operations are performed in EMS then the database backup size may be up to several GB even if the data present in database is not that much in size. This is because the mdf file of database contains the data and the ldf file contains the log of all the operations performed. If large number of operations are performed then size of ldf file increases. 

Therefore,  we can truncate the log file using the following steps:

  1. Open the database in SQL Management Studio
  2. Right-click the database, choose properties, then options.
  3. Make sure “Recovery model” is set to “Simple”, not “Full”
  4. Click Ok
  5. Right-click the database again, choose tasks -> shrink files
  6. Change file type to “log” and then click OK

This should reduce the size of database backup.