Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

multiple ODBC connections in one QVW file

How do i connect to multiple databases within one qvw file? can there be more than one connect statments in qvw script?

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can use multiple connects, but there is only one connection active at a time. A CONNECT statement will do a disconnect of any existing connect, or you can explicity DISCONNECT. So something like this:

CONNECT DB1

SQL SELECT ..

CONNECT DB2

SQL SELECT

-Rob

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can use multiple connects, but there is only one connection active at a time. A CONNECT statement will do a disconnect of any existing connect, or you can explicity DISCONNECT. So something like this:

CONNECT DB1

SQL SELECT ..

CONNECT DB2

SQL SELECT

-Rob

Not applicable
Author

Thanks Rob!