Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

2 DB's

Hi All, 

I have to fetch data from 2 data base's , one from oracle and the other from MySQL at the same time  .

Is  it possible to do so ? 

 

thanks in advance 

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

You will have to manually add the connection string.

Your script should look like below.

Connect ............. - this will be odbc connection string

Load statement 

Disconnect

Connect............. - this will be OLEDB connection string

Load Statement

Disconnect

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Yes you can do that in same script;

After you fetch the data from one database make sure that you use the statement like "Disconnect". This statement will close the connection to your connected database and then you can do the connection to another database.

 

 

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
smilingjohn
Specialist
Specialist
Author

Hi Kaushik 

Thanks for the reply , Currently i am using OLEDB to connect to my oracle DB  and ODBC driver to connect to my mYSQ DB 

will this be atomated if once the connection string is formed  or should i maually do it every time ?

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

You will have to manually add the connection string.

Your script should look like below.

Connect ............. - this will be odbc connection string

Load statement 

Disconnect

Connect............. - this will be OLEDB connection string

Load Statement

Disconnect

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!