Using Microsoft SQL as the Database Engine

In addition to Firebird, you can use Microsoft SQL Server (2008, 2008 R2, 2012, 2014, or 2016) as the database system. M-Files supports all the SQL Server editions (Express, Standard, Enterprise, etc.).
Note: For new installations, we recommend using Microsoft SQL Server Enterprise Edition 2016. If you are already using Microsoft SQL Server as the database engine for one or more vaults, and are interested in upgrading to a newer version for performance reasons, we recommend consulting our customer support at [email protected] before upgrading.

The Microsoft SQL Server Enterprise Edition versions 2008–2016 provide the possibility for compressing table data and indices. This reduces the input/output activity of the disk, but also increases the CPU load by about 10 percent. Typically this means reduced database sizes.

Microsoft SQL Server Enterprise Edition 2016 uses columnstore indices, which speeds up opening sub-levels of views, such as Documents by project. This is especially beneficial when empty virtual folders are set to be hidden.

Using SQL Server means that the database server memory can be more efficiently used and the backup storage of large data vaults is improved. In the event of problems, errors etc., you can switch to the mirrored database server without delay.

We recommend using Microsoft SQL Server with large document vaults that contain several hundreds of thousands or more documents or other objects. With large document vaults, Microsoft SQL Server provides better overall efficiency than Firebird. However, use of the Microsoft SQL Server database engine requires that the administrator is already familiar with the Microsoft SQL Server management.

Note: Microsoft SQL Server licenses are not included in M-Files licenses and must be purchased separately.

Microsoft SQL Server may be located on the same machine as the M-Files Server, or it can be installed on another server. If SQL Server is installed on another server, M-Files Server and SQL Server must be linked with a fast network connection. Instructions for ensuring the efficient operation of SQL Server can be found in the Microsoft SQL Server documentation. Firstly, it is recommended to ensure that the SQL Server machine has a sufficient amount of memory. The number and speed of processors and hard drives also have a significant impact on the efficiency.

The Microsoft SQL Server properties dialog.

Note: If your SQL Server does not use the default port (1433), the server name must be given as <server name>,<port>.

When Microsoft SQL Server is used as the document vault database engine, M-Files Server stores data in the document vault in the associated database. Certain secondary data that do not require a backup, such as search indices, are left outside the database.

Location of file data

File data can be saved in the Microsoft SQL Server database or other location, such as a network drive.

You can choose to:

  • Store file data in the vault database.

Backing Up

The administrator is responsible for making backup copies and timing the backup copies of the document vault database. Backup copying is performed using SQL Server's own management tools and backup copying solutions offered by third parties. When restoring a backup copy, the administrator first returns the document vault database to the SQL Server using the desired method, and then reattaches the document vault to M-Files using the Attach Document Vault function.

Video: SQL Server Backups

For more comprehensive backup instructions, please see the M-Files Knowledgebase article M-Files Backup Policy.

Migrating to Microsoft SQL Server

The document vault database engine can also be changed from Firebird to Microsoft SQL. Refer to Migrate to Microsoft SQL Server.