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: 
Not applicable

how to import only sql if load is wriiten?

assume i have sql query in a text file. i have to import it in qlikview. the query is just the sql part and the load statement i will write myself. how to do that?

example:

LOAD...

.....

...

.....

SQL

this part will be taken from text file. how to do that?

13 Replies
sinanozdemir
Specialist III
Specialist III

Hi,

LOAD

     column1,

     column2,

     columnN;

SQL SELECT *

FROM table;

Hope it helps.

Not applicable
Author

thanks for the early reply.

but my doubt is how to import a text file into qlikview that to the file contains only the sql part.

Anil_Babu_Samineni

Using include statemenT? Or what are you trying to achieve

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

You might be taking about this:

Screenshot_1.jpg

The sentence would look something like this:

$(Include=c:\users\mindaugasb\desktop\connection.txt);

Not applicable
Author

thanks for the reoly.

But I tried it. It is not working. For the include to work your txt file should also contain the LOAD part.

Not applicable
Author

thanks for the reply.

But I tried it. It is not working. For the include to work your txt file should also contain the LOAD part.

sinanozdemir
Specialist III
Specialist III

Ok.

What you are looking for is a qvs file. So save the txt file as qvs file and use it like the below:

Capture.PNG

Anil_Babu_Samineni

Okay, then you need to split into two text files. One is load and one more is which related to sql. Then use include to get the second text file like sql.

Might be helpful

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

okay thanks. I will try this once.