Documents administration (DMS)
Setting up the DMS database document storage
1. Before you start using the document server, you need to have FileStream enabled on the MSSQL service.
- SQL Server Configuration Manager/ SQL Server service/ SQL server (SQL2019).

Picture: SQL Server Configuration Manager
- Right-click and select properties; on the FileStream tab, check only Enable FILESTREAM for Transact-SQL access. (see the picture)

Picture: Enable FILESTREAM
- Restart SQL Server.
2. The first step in setting up document management is creating the databases - in the tree menu Documents administration (DMS) – Settings – DMS settings.
- If the file stream level is not set correctly, you need to enable FileStream on the MSSQL service, see the procedure above.

Picture: DMS settings - Incorrect file stream level 0
- If FileStream is enabled on the MSSQL service, we can press the Set DMS button. By pressing the Set DMS button, the user confirms the functionality of the predefined databases.

Picture: DMS settings - Correct file stream setting

Picture: DMS settings - databases created
Setting up the connection to Google Drive
From the tree menu Documents administration (DMS) / Documents, open the Documents code list. On the Service tab, there is the OAuth2 connection button in the ribbon.
The administrator who has the Edit DMS document configuration right must set up the connection between K2 and Google Drive according to the procedure described in the chapter Creating an application for the OAuth2 protocol. In addition, the Google Drive API must be enabled.

Picture: Google Drive - APIs and services

Picture: Google Drive - API

Picture: Google Drive - API
Every user who uses the connection to Google Drive is subsequently prompted to confirm the connection to Google Drive.

Picture: Confirmation of the connection to Google Drive