--- title: "SQL Wizard" slug: "sql-wizard" updated: 2026-08-05T12:46:42Z published: 2026-08-05T12:46:42Z canonical: "docs.lobstersoftware.com/sql-wizard" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # SQL Wizard ## Creating the configuration file The SQL Wizard is a tool for creating the configuration file for the time-driven custom classes [DefaultSQLCron](/v1/docs/en/default-sql-cron), [DefaultFileSQLCron](/v1/docs/en/default-file-sql-cron) and [CrossSQLCron](/docs/en/cross-sql-cron) (multiple databases). We will use the existing database tables *comm_partnerelations*, *comm_auths*, *comm_auths_additional* and the default database alias (in this case *hub*) to create a configuration file with the SQL Wizard. For each record in *comm_partnerrelations*, there are *n* records in *comm_auths*, which in turn can reference to *n* records in *comm_auths_additional*. Following the Entity Relationship Diagram. ![images/download/attachments/201684904/sqlwizard_1_er_diagram_en-version-1-modificationdate-1749610629417-api-v2.jpg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/sqlwizard_1_er_diagram_en-version-1-modificationdate-1749610629417-api-v2.jpg) ## Creating a profile with the input agent "Business Connector" ![images/download/attachments/201684904/1612-version-1-modificationdate-1749610629284-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1612-version-1-modificationdate-1749610629284-api-v2.png) **(1)** The database alias to be used. **NOTE:** System constants are available. **(2)** Opens the config assistant. All other settings you can be used as in the screenshot. Details can be found in section [Business Connector (cron input agent)](/v1/docs/en/profiles--entry-tab-2-cron-connector-tab-1). ## Opening config assistant ### General data For the example here, just use the default settings. ![images/download/attachments/201684904/1595-version-1-modificationdate-1749610629269-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1595-version-1-modificationdate-1749610629269-api-v2.png) (2.1) Path to the configuration file (generated automatically). (2.2) Select/view/edit configuration file. (2.3) Timeout for the SQL statements. (2.4) Create a new job for each row of the *select.0* statement. See the *result.split* parameter (see [DefaultSQLCron](/v1/docs/en/default-sql-cron)). (2.5) Use Base64 for columns of type BLOB/CLOB. See the *encode_blob* parameter (see [DefaultSQLCron](/v1/docs/en/default-sql-cron)). (2.6) Write out raw content instead of CSV. See the *use_raw_content* parameter (see [DefaultSQLCron](/v1/docs/en/default-sql-cron)). (2.7) Replacement values for empty first result (*select.0* statement). The values have to be delimited by semicolons (;). See the *empty * parameter (see [DefaultSQLCron](/v1/docs/en/default-sql-cron)). ### Selecting tables ![images/download/attachments/201684904/1613-version-1-modificationdate-1749610629308-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1613-version-1-modificationdate-1749610629308-api-v2.png) **(3)** The database alias is automatically taken over from the previous dialogue and cannot be edited in this example. **NOTE:** If the option *Execute SQL across multiple database sources* (= CrossSQLCron) is selected above, the alias is selectable. **(4)** Select the database table *comm_partnerrelations*. **(5)** Create a new entry via the context menu. ![images/download/attachments/201684904/1614-version-1-modificationdate-1749610629306-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1614-version-1-modificationdate-1749610629306-api-v2.png) **(6)** Creates the SQL command (all preselected columns can be used). **(7)** The created SQL command. **(8)** Use the created SQL command. ![images/download/attachments/201684904/1615-version-1-modificationdate-1749610629305-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1615-version-1-modificationdate-1749610629305-api-v2.png) **(9)** Select the database table *comm_auths*. **(10)** Create a new entry via the context menu. ![images/download/attachments/201684904/1616-version-1-modificationdate-1749610629302-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1616-version-1-modificationdate-1749610629302-api-v2.png) **(11)** Use the context menu on column *id_partner*. **(12)** Select the reference to table *comm_partnerrelations* and then the column *id_partner*. ![images/download/attachments/201684904/1617-version-1-modificationdate-1749610629300-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1617-version-1-modificationdate-1749610629300-api-v2.png) **(13)** Create the SQL command. **(14)** The created SQL command. **(15)** Use the created SQL command. ![images/download/attachments/201684904/1618-version-1-modificationdate-1749610629298-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1618-version-1-modificationdate-1749610629298-api-v2.png) **(16)** Select the database table *comm_auths_additional*. **(17)** Create a new entry via the context menu. ![images/download/attachments/201684904/1619-version-1-modificationdate-1749610629296-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1619-version-1-modificationdate-1749610629296-api-v2.png) **(18)** Use the context menu on column *id_partner*. **(19)** Select the reference to table *comm_auths* and then the column *id_partner*. ![images/download/attachments/201684904/1620-version-1-modificationdate-1749610629294-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1620-version-1-modificationdate-1749610629294-api-v2.png) **(20)** Use the context menu on column *id_auth*. **(21)** Select the reference to table *comm_auths* and then the column *id_auth*. ![images/download/attachments/201684904/1621-version-1-modificationdate-1749610629292-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1621-version-1-modificationdate-1749610629292-api-v2.png) **(22)** Create the SQL command. **(23)** The created SQL command. **(24)** Use the created SQL command. ![images/download/attachments/201684904/1622-version-1-modificationdate-1749610629287-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1622-version-1-modificationdate-1749610629287-api-v2.png) **(25)** Now you can use all created entries, which then automatically creates the configuration file. The config assistant is then closed and you are back in the Input Agent. ![images/download/attachments/201684904/1623-version-1-modificationdate-1749610629278-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1623-version-1-modificationdate-1749610629278-api-v2.png) **(26)** Via this icon you can view the created configuration file. See the following screenshot. **NOTE:** Details about the parameters in the file are described in the documentations of the above mentioned classes. ![images/download/attachments/201684904/1624-version-1-modificationdate-1749610629273-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1624-version-1-modificationdate-1749610629273-api-v2.png)