Qlik Community

Qlik Sense Data Connectivity

Discussion board where members can learn more about Qlik Sense Data Connectivity.

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

Tags (3)
1 Solution

Accepted Solutions
MVP & Luminary
MVP & Luminary

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

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

3 Replies
Partner
Partner

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

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

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

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

MVP & Luminary
MVP & Luminary

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

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