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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need Explaination

Can any body tell me the meaning of this code

set path = 'D:\DIAL MIS\Data Files\Source QVD\AMDB';

if v_schema = 'CEDA_MIS' then

DISCONNECT;

ODBC CONNECT TO [AMDB;DBQ=AMDB] (XUserId is , XPassword is

ENDIF

if v_schema = 'CEDA_SAP' then

DISCONNECT;

ODBC CONNECT TO [AMDB;DBQ=AMDB] (XUserId is , XPassword is );

ENDIF

if v_schema = 'BME' then

DISCONNECT;

ODBC CONNECT TO [AMDB;DBQ=AMDB] (XUserId is , XPassword is );

ENDIF

1 Reply
anbu1984
Master III
Master III

Based on the value in variable v_schema

- Previous database connection is disconnected using DISCONNECT

- Connected to database based on UserId and Password

Is UserId differs in the if block? If yes, then that UserId might have access to that schema mentioned in v_schema