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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] DB migration using dynamic schema

Hi,
I have two databases, and one of them is empty. What I want to do is to take all the tables and the rows from the first database and put them in the second one. I thought that this would be posible with the Dynamic Schema from Team Edition.
Is there any way to use the Dynamic Schema to achieve this?
Regards,
Khor
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi
The dynamic schema feature is only available on Talend Enterprise Data Integration, if you are using commercial subscription version, you can use it directly without activating it.
The query is OK for me.
Best regards
Shong

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Hi,
Yes, it is possible with dynamic schema feature. The job looks like: (let's take Mysql for example)
tMysqlTableList--iterate--tMysqlInput--main--tMysqlOutput
on tMysqlOutput, set a dynamic table name:
((String)globalMap.get("tMysqlTableList_1_CURRENT_TABLE"))
and select
'create table if not exist' option in the action on table list.
Best regards
Shong
Anonymous
Not applicable
Author

Hi shong,
How can I "activate" the dynamic schema feature? Because I get an error when I try to run the job saying that I haven't set the schema yet.
And how i have to write the query? My one looks like this and i get an error too:
"SELECT *
FROM "+((String)globalMap.get("tMysqlTableList_1_CURRENT_TABLE"))

Thanks,
Khor
Anonymous
Not applicable
Author

Hi
The dynamic schema feature is only available on Talend Enterprise Data Integration, if you are using commercial subscription version, you can use it directly without activating it.
The query is OK for me.
Best regards
Shong
Anonymous
Not applicable
Author

Hi shong,
Thanks, you helped me a lot!
Have a nice day 0683p000009MACn.png
Khor