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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multiple database connectivity.

Hi !

I need a help. I want to connect to multiple database i.e., if my first ODBC connection to the database fails I want to try to connect to the next database in the list through ODBC. Is there a way to do it please.

Thanking you in anticipation!

Regards,

Sundeep.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi Sundeep,

Please close this discussion by giving Correct Answer to my post, it helps others in finding the answers to the similar ones.

Regards,

Jagan

View solution in original post

4 Replies
jagan
Partner - Champion III
Partner - Champion III


Hi Sundeep,

Try like this

set ErrorMode=0;  // Qlikview will simply ignore the failure and continue script execution at the next script statement

ODBC connect ConnectionString1;

IF ScriptError <> 0 THEN

     ODBC connect ConnectionString1;

END IF

set ErrorMode=1; // script execution will halt and the user will be prompted for action

'

'

'

'

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Thank you so much for your help Jagan

I would try and let you know the result.

Many thanks,

Sundeep.

Not applicable
Author

Hi Jagan,

It is working as expected. Many thanks for your help.

Rgrds,

Sundeep.

jagan
Partner - Champion III
Partner - Champion III

Hi Sundeep,

Please close this discussion by giving Correct Answer to my post, it helps others in finding the answers to the similar ones.

Regards,

Jagan