Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple database connections with OLEDB

Hi All,

I would like to connect to 2-3 databases first and then run the scripts in other tabs. Does Qlikview allow it?

For example:

Database Connections tab

OLEDB Connection 1

OLEDB Connection2

Script tab 1

Script that needs DB connection 1

Script tab 2

Script that needs DB connection 2

Script tab 3

Script that needs DB connection 1

Can scripts jump from connection to connection or does it have to be as below?

Database Connections tab

OLEDB Connection 1

Script tab 1

Script that needs DB connection 1

Script tab 2

Script that needs DB connection 1

Database Connections tab

OLEDB Connection 2

Script tab 3

Script that needs DB connection 2

Thoughts/ suggestions?

Thank you.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Qlikview can be connected to only one data source at a time. So you need to connect to the correct data source first before getting data from it. So your second setup will work while the first will fail because the first connection is disconnected because right after the second connection is made. That will make the code on the first script tab to fail.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Qlikview can be connected to only one data source at a time. So you need to connect to the correct data source first before getting data from it. So your second setup will work while the first will fail because the first connection is disconnected because right after the second connection is made. That will make the code on the first script tab to fail.


talk is cheap, supply exceeds demand
Not applicable
Author


Thank you for your response.