Looking for a way to provide a list of tables (in Excel), create a SQL statement and read all data into and Excel file. The challenge: each source table can have different fields.
Example: two tables:
Table1-Fields: ID, Text1, Number1
Table2-Fields: ID, 88Text, ANumberField
Excel file would have a 'TableToRead' column containing table names. In this example Table1 and Table2. (My actual excel file has about 40 tables)
Use attributemanager to build the select statement based on 'TableToRead'- result 'SQLSelectStatment'
(for instance SELECT * FROM Table1 )
SQLExecutor then reads from 'SQLSelectStatement'-problem is the 'Attributes to Expose' will change with each table.
I though I could use another SQLExecutor, do a sql DESCRIBE on the table, get the field list and pass to the SQLExecutor that does the select-but it looks like you can't pass 'Attributes to Expose' into A SQLExecutor.