Configuring the SA Rest Service to connect to a SQL server on a different computer
If your SA Rest Service is running on a separate computer from your SQL server, there are additional configuration steps required. You can either use Basic Authentication and configure SA Rest to use an SQL Authenticated user, or to use Windows Authentication you can change the Log On user in the SARest Service Properties, and set a configuration option to use that Service Account for DB connection.
Option 1. Basic Authentication with SQL User
For this option, you must enable Basic Authentication, and setup an SQL user that has access to the encyclopedia, including the catalog if it is an Enterprise encyclopedia.
There are two ways to do this – you can either use the SA Rest Configuration tool or you can edit the configuration file manually.
Using the SA Rest Configuration tool
1 Open the System Architect installation folder. By default, the folder is:
2 Locate and edit file SARESTWebService.exe.config.
3 Set key BasicAuthentication to true.
4 Enter your SQL user and password in the connection Strings next to keys DBUser and DBPassword respectively.
5 Save the file. If the SA Rest Service is running, restart it for the changes to take effect.
Option 2. Windows Authentication with Service Account
For this option, you must enable Windows Authentication, and setup a Windows user that has access to the encyclopedia, including the catalog if it is an Enterprise encyclopedia.
To do this you must edit both the SA Rest Configuration file and the Windows Service Properties.
Editing the configuration file
1 Open the System Architect installation folder. By default, the folder is: