Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Database initialization with SQL as variables

Hi,

I want to create a database from CSV files. I choosed a H2 database and wish to generate the database structure. I tried several ways but none worked.

The last one is this one:

 

- tFixedFlowInput with many SQL (drop table if exists, create table, drop index if exists, create index)

- tFixedFlowInput -> tDBRow with SQL as flow variable

While executing, the SQL is NULL. I thought that it should be defined at initialization cycle and broke the flow into two subjobs (tFixedFlowInput->tFlowToIterate->iterate->tFixedFlowInput->tDBRow) but with no better luck.

 

Is it a bug of tDBRow ? or should I do it by another way ? I want as less components as possible to do that...

 

Thanks for your help

Labels (3)
3 Replies
Anonymous
Not applicable
Author

Hi,

 

    Could you please provide a screen shot for better understanding of your query?

 

Warm Regards,

 

Nikhil Thampi

Anonymous
Not applicable
Author

Here are screenshots


sql2.png
sql1.png
Anonymous
Not applicable
Author

Can you replace your "create stop times" component with a tLogRow? Then run the job. Can you also show us your tFixedFlowInput schema?