How to give the connector access to SQL Server
To set up the connection between your Glide system and your CCH system, you will need to do the following on the SQL Server that hosts CCH.
This tutorial assumes that you will host the connector on the SQL Server machine. If you decide to host the connector on a different machine then further configuration may be necessary.
Step 1 -> To create the user account on SQL Server follow these steps:
- Open SQL Server Management Studio.
- Connect to the CCH SQL Server database instance.
- Open the Security folder.
- Right-click on the Logins folder and select New Login.
- Select SQL Server authentication.
- Enter a login name and password. Make a note of these credentials, as you will need to enter them into the connector's configuration file later.
- Untick Enforce password expiration (this would periodically break the integration).
- Click OK to create the account.
Step 2 -> Create the glideInt database:
- Open SQL Server Management Studio.
- Execute the script found in the CCH Connector package that you will have been provided with. The filename is "Setup_CreateGlideIntDatabase.sql".
Step 3 -> Once you have created the user account and glideInt database you need to assign permissions following these steps:
- Open SQL Server Management Studio.
- Open the Security folder.
- Double-click on the new login created for Glide to open its properties.
- Select the User mapping page.
- Tick the CCH database that will typically be called "Central".
- Under database role membership tick db_datareader.
- Click OK to save the changes.
- Repeat steps 5, 6, and 7 for the glideInt database, but also tick db_datawriter under database role membership.
Step 4 -> Ensure that the CCH application user has permissions to read and update the glideInt database.
The CCH application will have a user on the SQL Server, and we need to ensure that this user has appropriate permissions on the newly created glideInt database. Depending on how your CCH system has been set up, this may happen automatically, but you must check and grant permissions if required.
Often, the user is called vpmuser, but this may vary on your instance.
- Open SQL Server Management Studio.
- Open the Security folder.
- Drill into the appropriate user, e.g. vpmuser.
- Select the User mapping page.
- Tick the glideInt database.
- Under database role membership, tick db_datareader and db_datawriter.
- Click OK to save the changes.
Step 5 -> Create the database triggers:
- Open SQL Server Management Studio.
- Execute the script to create the database triggers. This script can be found in the CCH Connector package that you will have been provided with and is called "Setup_CreateTriggers.sql".
The triggers will fire when a new client is added to CCH or when an existing client is updated. They will add a new row to the glideInt database table, which is then interrogated by the connector every 15 minutes.
Once you have completed these steps, return to continue the connector setup process.