Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

MS SQL Server recovery model and M-Files vault database

Last updated on 31 March 2025 · 2 min read

Admin
Backup / Recovery

Overview 

M-Files supports Microsoft SQL Server as the vault's database engine running on Windows platform. For the supported SQL Server versions, refer to the M-Files Lifecycle Policy. For best performance from M-Files it is always recommended to use MS SQL Server instead of default Firebird database. 

SQL server backup and restore is based on recovery model of the database. As of Microsoft "A recovery model is a database property that controls how transactions are logged, whether the transaction log requires (and allows) backing up, and what kinds of restore operations are available"

There are three recovery model option in MS SQL Server: Simple, Full, Bulk-logged. Mostly Simple model or Full model is used based on database operation.

Solution 

Simple: This is the simplest among the available MS SQL recovery models. It has support for full, differential and file level backup support. It does not include log backups. It can recover only to the end of a backup, point in time recovery is not available. 

Full: All the transactions (Data Definition Language and Data Manipulation Language) are stored in transaction log file. This recovery model supports point in time restore and has possibility for Full, Differential, Transaction log, Copy-Only, File and/or file-group and Partial backup.

Usually M-Files sets Simple as recovery model in vault database based on MS SQL Server. But SQL Server administrator can change the recovery model to Full or Bulk-logged according to need. And M-Files doesn't rollback this change. 

Changing recovery model in Microsoft SQL Server from database properties using MS SQL Server management studio:

The same can be accomplished using following transact SQL:

USE [master]; 

ALTER DATABASE [<dbname>] SET RECOVERY FULL; 

Further readings: 

Recovery Models (SQL Server)

https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/recovery-models-sql-server?view=sqlallproducts-allversions

View or Change the Recovery Model of a Database

https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/view-or-change-the-recovery-model-of-a-database-sql-server?view=sqlallproducts-allversions

Still need help?