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

Why is commented-out LOAD statement included in generated script?

Hello,

I have created a ODBC connection to a MS Access database.  The script generated by clicking the Insert Connection String button contains a SQL statement. It also includes a LOAD statement but it is commented out via a REM statement. The script runs fine with the LOAD statement commented out so why is it included?

Mark

1 Solution

Accepted Solutions
marcus_sommer

It's a Preceding Load and the main-benefits are that you could there apply qlik-functions which aren't supported from the sql-side and also to concentrate most of required transformings within one place. Quite often in this way that you could copy a sql-statement from your db directly into qlik without any changes on them (unless you want to specify a certain where-clause to reduce the amount of data) and within the preceeding part you could place your transformings.

- Marcus

View solution in original post

3 Replies
shraddha_g
Partner - Master III
Partner - Master III

there is a check box while selecting data from database(at bottom) which says 'Include Load Script'. You can uncheck it if you dnt want it to be included in script with SQL Statement

Not applicable
Author

Thank you for your response Shraddha.  In re-reading my post, I am afraid my question was not precise enough. The script runs with or without the LOAD statement commented out. If the LOAD statement is not necessary, what are the advantages of leaving it uncommented?

Mark

marcus_sommer

It's a Preceding Load and the main-benefits are that you could there apply qlik-functions which aren't supported from the sql-side and also to concentrate most of required transformings within one place. Quite often in this way that you could copy a sql-statement from your db directly into qlik without any changes on them (unless you want to specify a certain where-clause to reduce the amount of data) and within the preceeding part you could place your transformings.

- Marcus