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.
Before you start, note the following requirements:
- Give the user
USAGEprivilege for the warehouse.
- Give the user
SELECTprivilege 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:
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
- 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.