This article helps you connect your externally hosted database and assumes that you have already prepared your database to make it usable. More information on how to prepare your database is available on the Preparing your hosted database for Relational Data page.
For Emarsys to successfully access your database, it needs to be configured as follows:
- Grant SELECT and SHOWPLAN privileges to the Emarsys user.
Add the following IP addresses to the relevant allowlist:
Setting up the connection
The first step in using Relational Data is to set up the connection between your database and Emarsys.
- In the Emarsys platform, go to Add-ons > Relational Data > Connections.
- In the top right corner in Connections, click Create new Connection.
- Select MsSQL.
- Configure your connection as follows:
To be able to use the Quick Test function of the the Segment Template Creator the
SHOWPLAN privilege must be assigned to the Emarsys user.
- Connection Name: the reference you want to give to your connection, can be the same as the database name.
This cannot contain spaces and should use underscores instead.
- Host: the host name of the database
- Port: the port to use for connecting to the database
- Database name: the name of the database
- User name: the login name of the user you want to use for this connection
- Password: the password of the user you want to use for this connection
- Connection parameters (optional): the database parameters you want to use, leave empty to use the default parameters.
- CA Certificate: the root CA certificate you want to use, more information can be found in the Preparing your hosted database for Relational Data page.
- When all the necessary information has been added, click Test to verify that your connection works.
- Click Save to create your connector