WHAT IS THE DYNAMIC CONNECTION FEATURE?
Dynamic connection is a new feature which allows you to replace database connections in source, destination components and execute SQL task component on workflow at package runtime. This is a convenient and scalable approach to running jobs across multiple database connections while using a single package!
To use this feature, reach out to Integrate.io Support and request it to be enabled on your account!
Overview
- Set variable for connection on package
- Set variable for connection on workflow
- Find connection IDs
- Update variable value
Set variable for connection on package
1. Open any existing package or create a new one.
2. Add a database source or destination component ![thumbnail image]()
3. Open the component and specify any available connection
![thumbnail image]()
4. Check the checkbox for “Set variable for connection”
• It is not possible to change the variable name.
• The value of the variable defaults to the connection ID from the connection dropdown.
![thumbnail image]()
5. Configure “Source properties” and “Schema” sections, then “Save” the component.
6. Configure the rest of the package as needed, then "Save" the package.
Set variable for connection on workflow
1. Open any existing package or create a new one.
2. Add a SQL task component
![thumbnail image]()
3. Open the component and specify any available connection
![thumbnail image]()
4. Check the checkbox for “Set variable for connection”
• It is not possible to change the variable name.
• The value of the variable defaults to the connection ID from the connection dropdown.
![thumbnail image]()
5. Configure “Query” and “Execute task if” sections, then “Save” the component.
6. Configure the rest of the workflow as needed, then "Save" the workflow.
Find connection IDs
You are ready to override the dynamic connection variable with a valid database connection ID, but first you need to find suitable connection IDs on the Connections page.
Make sure that you only use IDs of database connections, and that the type of database is the same as the type defined in the source / destination component. I.e. for a MySQL database, only specify the ID of another MySQL database connection.
![thumbnail image]()
Update connection variable value
Replace the dynamic connection variable value with the ID(s) you identified from the connections page.
-
1. When running a job, “Run job” in the package designer
![thumbnail image]()
![thumbnail image]()
-
2. “Run job” on the Packages page
![thumbnail image]()
![thumbnail image]()
- 3. “Run job” on the Jobs page
![thumbnail image]()
![thumbnail image]()
![thumbnail image]()
-
4. When creating a schedule, “Add package” in the “New schedule” window
![thumbnail image]()
![thumbnail image]()
![thumbnail image]()
![thumbnail image]()
![thumbnail image]()
-
5. When creating a Workflow package, “Run package” task window
![thumbnail image]()
![thumbnail image]()
![thumbnail image]()
Limitations
• Dynamic connection is available only on database source, database destination components and execute SQL task component on workflow.
• The connection in the variable must be the same type as the original input connection
For example, when selecting a MySQL connection from the dropdown in the source component, the dynamic connection variable specified at runtime must also be a MySQL connection
• The schema of the dynamic connection must be the same as the original input connection's (selected in the source / destination component)