Skip to main content Link Menu Expand (external link) Document Search Copy Copied

SQL in DB Connectors

Summary

Identifies DB Connectors which use an SQL to filter source data

Description

Both legacy Enterprise Database Stages and Connector Stages provide a number of mechanisms for specifying the means of specifying the data they should retrieve:

Query modeDescriptionBehaviour
———————-————————————-———————————
User QueryA custom query specified in the Stage propertiesRule fails
SQL BuilderConstruct a custom SQL statement with a user interfaceRule fails
SQL FileA file containing an SQL query is loaded and executed at runtime.Rule fails
Table QuerySelect the name of the table to use from a drop-down listRule fails if SELECT or FILTER clauses specified
GeneratedUnderlying SQL is generated by the Stage at runtimeRule fails if WHERE or OTHER clauses specified

This rule checks for the use of hardcoded SQL in properties of Database Enterprise Stages and Connector Stages. Development teams may choose to avoid using hardcoded SQL to filter data and instead opt to use downstream stages to process database output.

This rule only permits generated SQL where there are no other clauses specified in connector with that option. Any use-defined SQL, generated SQL with additional clauses or query file inputs will fail.

Actions

Configure your Enterprise Database Stages and Connector Stages to use an approach which does not necessitate the use of hard-coded SQL.


Back to top

Copyright © 2017-2024 Data Migrators Pty Ltd.