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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Force oracle index /*

Dear all,

I'm trying to force index on script load, but I think that QV takes it as a comment an is not sending INDEX to the select.

Here you have an example

sql select /*+ index(table, index) */ * from table where field in (....)

I think that string /*+ index(table, index) */ is not loading on select because QV thinks that is a comment.

How can I add this string to select and do that QV sends on select.

Best regards.

Labels (1)
1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

There is indeed a system variable that is used to make QlikView "ignore" lines starting in // or /* as comments and process them. You can set this variable in the script and restore as soon as the load has finished:

Set StripComments = 0;

Table:

LOAD *;

SQL SELECT /* ... */

;

SET StripComments = 1;

Hope that helps.

Miguel

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hi,

There is indeed a system variable that is used to make QlikView "ignore" lines starting in // or /* as comments and process them. You can set this variable in the script and restore as soon as the load has finished:

Set StripComments = 0;

Table:

LOAD *;

SQL SELECT /* ... */

;

SET StripComments = 1;

Hope that helps.

Miguel

erichshiino
Partner - Master
Partner - Master

This post helped me a lot!

Thank you

Erich