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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loop through the same tables in multiple databases

I am working with an event management product that maintains separate MS-SQL databases for each event. One database keeps a list of all of the different databases. To create an app across all the databases, I need to create a loop that will

  • draw the database name from the list;
  • access the required database and tables;
  • store the tables into qvds with the database name at the front of the qvd name e.g. AT_4313_EventDemographics.qvd; then
  • move rinse repeat until all databases in the list have been addressed.

Any ideas?

Labels (1)
1 Solution

Accepted Solutions
arulsettu
Master III
Master III

3 Replies
arulsettu
Master III
Master III

Not applicable
Author

Worked like a charm - thanks. Now all I need to do is get the script to move on if there is an error.

arulsettu
Master III
Master III

if its is ok please close the thread by marking correct answer

thanks