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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
christian77
Partner - Specialist
Partner - Specialist

Reading Tables Dinamically

I’m working in a SQL data base. They are some tables in that data base named Cuestionario1, Cuestionario2, Cuestionario3, …, CuestionarioN. I need to upload them all, but I don´t know how to do it dynamically.

In other words, how can I retrieve the number of Cuestionarios before, in order to reload them.

Thank you all.

1 Solution

Accepted Solutions
Not applicable

Hi,

First you can load all the table names starting with 'Cuestionari' using the below query.

SELECT * FROM sys.Tables where name like ('Cuestionari%')

Then loop through the Name field from the above load and fetch all the tables.

Cheers.

View solution in original post

4 Replies
christian77
Partner - Specialist
Partner - Specialist
Author

I meant Dynamically.

Not applicable

Hi,

If you know how many tables are there, i mean N you can lopp through using for and next to load the tables.

Can you please elaborate the actual requirement.

Cheers.

christian77
Partner - Specialist
Partner - Specialist
Author

That's what I want to know, how many tables they are with that name. Then I'll loop.

Not applicable

Hi,

First you can load all the table names starting with 'Cuestionari' using the below query.

SELECT * FROM sys.Tables where name like ('Cuestionari%')

Then loop through the Name field from the above load and fetch all the tables.

Cheers.