Connect data
Databases
Connect your own databases to build dashboards on custom applications, data warehouses or older systems. Snowflake has its own guide: see Snowflake.
Supported databases
Section titled “Supported databases”| Database | Card in Settings → Integrations | Connects from |
|---|---|---|
| PostgreSQL | PostgreSQL | Cloud or a sync agent |
| MySQL | MySQL | Cloud or a sync agent |
| Microsoft SQL Server | MS SQL | Cloud or a sync agent |
| IBM DB2 | IBM DB2 | A sync agent only |
Before you start
Section titled “Before you start”You need:
- A read-only database user with
SELECTaccess to the tables and views you want to report on. - Network access from Resplendent. If the database is behind a firewall, either allow Resplendent’s sync servers (ask support@resplendentdata.com for the current IP addresses) or install a sync agent on your network.
Connect your database
Section titled “Connect your database”- Open Settings → Integrations.
- Find your database’s card and click Connect.
- Fill in the connection fields from the table below, and enter a Connection Title.
- If the database is on your own network, turn on Enable On-Premise Sync under On-Premise Sync Agent, then choose your agent under Select Sync Agent.
- Click Save & Test.
- When the test passes, click Sync Dataset and choose the tables or views to sync.
| Field | Databases | What to enter |
|---|---|---|
| Username | All | The read-only user |
| Password | All | That user’s password |
| IP Address | All | The server’s address |
| Port | PostgreSQL, MySQL, SQL Server | The database port, such as 5432 for PostgreSQL or 3306 for MySQL |
| Database Name | PostgreSQL, MySQL, SQL Server | The database to read |
| Require SSL | PostgreSQL | Off by default. Turn it on for cloud hosts that require encrypted connections, such as Supabase, Neon or Amazon RDS |
| Library Name | IBM DB2 | The library that holds your tables |
IBM DB2 connects only through a sync agent with the IBM i Access ODBC driver installed on the agent’s host.
Incremental sync
Section titled “Incremental sync”For large tables, incremental sync pulls only changed rows after the first load. Set these in the Dataset editor:
- Unique Key: one column, or a Virtual Primary Key built from several columns when no single column identifies each row.
- Sorting Column: a value that advances whenever a row is inserted or edited, such as
updated_at.
You can choose these columns even when the database has no primary-key or unique constraint on them. To check whether your key columns really identify separate rows, use Dataset Options; see Datasets. SQL Server rowversion and timestamp columns can’t be used as sorting columns. Without a suitable key and sorting column, use a snapshot sync instead.
Each incremental sync re-reads the last five minutes of changes to catch rows that share a timestamp or committed late. Changes backdated further than that, and rows deleted in the database, need a resync. Adding columns to a Dataset also resyncs it: existing rows are replaced and history loads again in batches.
Before Eric proposes pulling a table, he inspects its schema, declared keys and row counts. He sees the table’s records only after you approve the Dataset and it syncs. Row counts from database statistics are estimates and may be out of date.
Explore with SQL Studio
Section titled “Explore with SQL Studio”Open SQL Studio from the Dataset picker to run a read-only SELECT or WITH … SELECT before you add a Dataset. It returns up to 1,000 rows and allows each query up to five minutes. Only users with full Dataset access can open it. Connections that use a sync agent run SQL Studio through the agent.