This article can be used for configuration of roles in your own MS SQL database during Safetica implementation.
For Safetica to run correctly, there are 3 possible configurations for user roles in MS SQL database.
This is the lowest required role for basic functionality of Safetica, except automatic actualization, data archivation and advanced configuration. – This setup is not recommended.
Account used by Safetica to access database, must have access rights to all Safetica databases with minimal role of DB_owner.
DB_creator is sufficient role, however it’s unable to provide archivation option outside of existing SQL folder. – This setup is recommended.
Account used by Safetica to access database, must have apart from DB_owner role (previous point) also server role db_creator with explicit authorization VIEW SERVER STATE, which allows us to provide database maintenance.
3. SA (sysadmin)
SA (sysadmin) role is required for advanced setup and configuration. For example: archivation outside of existing SQL folder, advanced debugging or, in case of SQL Server verzion 10.50.2500 and lower (2008 R2 SP1 and lower) – This setup is not necessary.
Account used by Safetica to access database, must have apart from roles mentioned in both previous points (DB_owner, DB_creator), also additional roles: ALTER SERVER STATE, ALTER SETTINGS, ALTER TRACE, ALTER ANY EVENT SESSION.
The easiest way to achieve fine-tuning and optimalization, is to temporarily allow SA (sysadmin) role.
In case of version 2008 R2 SP1 and lower, SA (sysadmin) role is necessary for collecting data regarding free DB and HDD space via function XP_FIXEDDRIVES.