# OLEDB

> Connect a Datahub dataflow through an OLE DB provider.

The OLEDB node allows dataflows to connect to databases through an OLE DB provider and execute SQL queries.

This node can be used to:

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

## Configuration

| Property | Description |
| --- | --- |
| Connection | The OLEDB 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 | OLEDB connection string. |
| Connection timeout | Connection timeout duration in seconds. |

Example connection string:

```
Provider=MSOLEDBSQL;
Data Source=myServerAddress;
Initial Catalog=myDataBase;
User ID=myUsername;
Password=myPassword;
TrustServerCertificate=True;
```

Use the Validate button to test the connection before saving.

## When to use it

Use this node when a database or data source is exposed through OLE DB.

## Tips

- Check that the provider is installed where the dataflow runs.
- Test read and write operations before using the node in production flows.