Skip to main content

Set Up

Before You Begin

Make sure you have the following before starting:
  • ACCOUNTADMIN access in Snowflake: You’ll need to create a warehouse, role, and user, and grant privileges. The ACCOUNTADMIN role (or an equivalent role with these permissions) is required.
  • OpenSSL installed locally: Used to generate the key pair Conversion uses to authenticate. Available on macOS and Linux out of the box, and on Windows via WSL or Git Bash.
  • The database(s) you want to sync identified: Know which database, and optionally which schemas and tables, Conversion should be able to read from.
  • Your Snowflake account identifier: The <org>-<account> portion of your Snowflake URL (e.g. fntyhkd-zxb06236). Use this format, not the account locator (e.g. xy12345.us-east-1). You’ll need it when connecting in Step 2.

Step 1: Set Up Snowflake Access

Conversion connects to Snowflake using key-pair authentication. In this step you’ll create a dedicated warehouse, role, and user, generate a key pair, grant read access, and configure network access. Run the following commands in a Snowflake SQL worksheet. Use the ACCOUNTADMIN role.

Create a Virtual Warehouse

Conversion needs a virtual warehouse to run queries. We recommend creating a dedicated warehouse for Conversion so its compute usage is easy to monitor in isolation, but you can reuse an existing one if you prefer.

Create a Role

Create a role for Conversion and allow it to use the warehouse.

Create a User

Create a user for Conversion and assign the role you created.

Generate a Private Key

Conversion authenticates using a private key in PKCS#8 PEM format. Generate one using OpenSSL:
This creates an unencrypted private key file called rsa_key.p8. Then generate the matching public key:
Print the key body (without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- lines) so you can copy it:
Assign the copied value to your Snowflake user:
Keep your private key secure. You’ll upload it to Conversion when setting up the connection.

Grant Read Access to Your Data

Give the role read access to the tables you want to sync. We recommend granting access at the database level so that Conversion automatically sees new schemas and tables as you add them. No manual SQL changes required as the warehouse evolves.
Run the grants above as ACCOUNTADMIN (or the database’s owner role).
Granting Access table-by-table
If your database contains data Conversion shouldn’t see, grant access to specific tables instead of the whole database:
With table-by-table grants, Conversion only sees the tables you explicitly include. Any new tables you create later or existing tables you forgot to grant on cannot be accessed by Conversion.
Verify the grants worked
Before moving on, confirm CONVERSION_SYNC_ROLE can actually see your database:

Allow IP Addresses

If your Snowflake account uses network policies, allow connections from Conversion’s IP addresses: Here’s how to add these IP addresses to your existing policy:
ALTER NETWORK POLICY ... SET ALLOWED_IP_LIST replaces the list; it doesn’t append. Always run DESC NETWORK POLICY first and copy the existing entries into the new list.

Step 2: Connect Snowflake to Conversion

  1. In Conversion, go to Settings → CRM and syncing → Connections.
  2. Click Add Snowflake connection.
  3. Fill in the connection details using the values from the earlier steps:
  4. Click Create connection.
Conversion will verify the connection. If successful, you’re ready to create syncs.

Create a Sync

After connecting, open your new Snowflake connection and go to the Syncs tab to create a sync. Read more about Setting Up a Sync.

Snowflake SQL Reference

Converting Timestamps

Conversion expects Unix timestamps for date/time fields. Use DATE_PART(EPOCH_SECOND, column) to convert Snowflake TIMESTAMP values:

Using last_sync_time

See Incremental Syncing for how last_sync_time works. In Snowflake, convert it with TO_TIMESTAMP() to compare against a TIMESTAMP column:
Or convert your column to Unix seconds and compare integers directly:
With a time buffer:

Converting Booleans

Use IFF to convert booleans to strings if you need 'true'/'false' text values:

Handling NULLs

Use COALESCE or NVL to provide default values:

Casting Types

Use CAST or :: to convert between types:

Troubleshooting

Column names are still uppercase

If column names remain uppercase despite using AS "lowercase", check the QUOTED_IDENTIFIERS_IGNORE_CASE setting. Set it to FALSE for your user or role:
Or for the role:

“Permission denied” errors

Ensure your role has the required grants:
  • USAGE on the warehouse
  • USAGE on the database and schema
  • SELECT on each table you want to query

”Could not connect” errors

Verify that:
  • Your account identifier is in the <org>-<account> format (e.g., fntyhkd-zxb06236)
  • The private key is in PKCS#8 PEM format (starts with -----BEGIN PRIVATE KEY-----)
  • The public key is assigned to your Snowflake user
  • Conversion’s IP addresses are allowed if you use network policies

Sync taking too long

  • Consider using a larger warehouse size
For general tips, see Sync Taking Too Long.

Frequently Asked Questions

The role needs USAGE on the warehouse and database, USAGE on the schemas, and SELECT on the tables you want to sync. We recommend granting schema and table access at the database level (current and future); grant table-by-table if needed. See Grant Read Access to Your Data. Conversion only reads data; it never writes to your Snowflake account.
No. Conversion requires an unencrypted private key in PKCS#8 PEM format. If your key is encrypted, decrypt it first:
Use fully-qualified table names in your query: