# ODBC

> Connect a Datahub dataflow through an ODBC data source.

The ODBC node allows dataflows to connect to databases through an ODBC driver and execute SQL queries.

This node can be used to:

- Retrieve data from external databases
- Execute custom SQL queries
- Connect to systems supporting ODBC
- Integrate database data into dataflows

## Configuration

| Property | Description |
| --- | --- |
| Connection | The ODBC connection to use. |
| Query | Opens the SQL query configuration window. The query is validated using the SQL dialect of the selected connection type. |
| Query timeout | Maximum execution time in seconds before the query is stopped. |

### Connection configuration

| Setting | Description |
| --- | --- |
| Name | Name of the connection. |
| Connection type | Database type being used. |
| Connection string | ODBC connection string. |
| Connection timeout | Connection timeout duration in seconds. |

Example connection string:

```
Driver={ODBC Driver 17 for SQL Server};
Server=myServerAddress;
Database=myDataBase;
Uid=myUsername;
Pwd=myPassword;
TrustServerCertificate=yes;
```

Use the Validate button to test the connection before saving.

## When to use it

Use this node when the target system provides an ODBC driver.

## Tips

- Make sure the ODBC driver is installed and configured on the runtime environment.
- Document the DSN or connection settings clearly.