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.
Prerequisites
Before you start, note the following requirements:
- Give the user
USAGE
privilege for the warehouse. - Give the user
SELECT
privilege for every table and view in the schema you would like to use for segmentation and personalization.
Add the following IP addresses to the relevant allowlist: 34.89.173.3
, 34.89.137.140
, 35.246.249.205
, 185.4.123.112
Meeting these requirements ensures Emarsys' access to your database.
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 Snowflake.
- Configure your connection as follows:
- 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.
-
Account name: the name assigned to your account by Snowflake. In the hostname you received from Snowflake (after your account was provisioned), your account name is the entire string to the left of
snowflakecomputing.com
. Example:xy12345.us-east-1-gov.aws.
- Warehouse name: the name of the virtual warehouse existing in Snowflake.
- Schema: the name of the schema you want us to use when we connect to snowflake.
- Database name: the name of the database you want us to use when connecting.
- User name: the login name for the Snowflake user you want to use when connecting.
- Password: password for the Snowflake user you want to use when connecting.
- Connection parameters (optional): specific parameters you want to use, leave empty to use default parameters.
- When you finished adding all the necessary data, Test your connection.
- Click Save to create the connector you just set up.
You are done and can now either:
Note that, when personalization runs as part of a campaign, personalization will perform lookup queries on your Snowflake database.
Because of the way that Snowflake calculates costs, engaging in a lot of personalization using Relational Data and Snowflake can result in increased costs.