Issue
- You are running ESET PROTECT Server and MS SQL database on different computers
- Resolve "SQL Server Error: 18" when connecting the database to ESET PROTECT On-Prem
Solution
Related solution: Linux users
-
Download and install Microsoft ODBC Driver for SQL Server version 17 and later.
-
Press the Windows key + R, type services.msc, and click OK.

-
Right-click the ESET PROTECT Server service and select Stop from the context menu.

-
Navigate to the following directory:
C:\ProgramData\ESET\RemoteAdministrator\Server\EraServerApplicationData\Configuration\ -
Edit the
StartupConfiguration.inifile:Change the variables in the
StartupConfiguration.inifile based on your environment:DatabaseType=MSSQLOdbc DatabaseConnectionString=Driver={ODBC};Server=SERVER;Uid=era_user;Pwd={PASSWORD};CharSet=utf8;Database=era_db;-
ODBC variable: Press the Windows key + Q, type ODBC, and click ODBC Data Sources. In the ODBC Data Source Administrator window, click Drivers and change the ODBC variable in the file to the highlighted text (in this example, ODBC Driver 17 for SQL Server)

-
SERVER variable: IP address and port of the computer where the database is installed
-
PASSWORD variable: password to the era_db database
-
Add the following code to the end of the file:
Encrypt=yes;TrustServerCertificate=yes;
Below is an example of the
StartupConfiguration.inifile with example values:DatabaseType=MSSQLOdbc DatabaseConnectionString=Driver={ODBC Driver 17 for SQL Server};Server=10.10.10.10,1433;Uid=era_user;Pwd={SecretPassword};CharSet=utf8;Database=era_db;Encrypt=yes;TrustServerCertificate=yes; -
-
Save the
StartupConfiguration.inifile. -
Press the Windows key + R, type services.msc, and click OK.

-
Right-click the ESET PROTECT Server service and select Start from the context menu.

-
If you can log in to the ESET PROTECT Web Console, the encrypted connection to the database works properly.
If you are not able to log in to the ESET PROTECT Web Console, restore the
StartupConfiguration.inifile from backup and contact ESET Technical Support.