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

QlikView Direct Discovery

Hello All.

I am using QlikView 11.2 SR 15. I am trying to set up a Direct Discovery connection to an OLEDB SQL server using the following syntax.

DIRECT SELECT Field1,
Field2
FROM Database."Owner"."Database Tables";

When I run the script, I receive a "Line is not valid." error. The script does not seem to like the quotation marks, but that is what the connection set up provides.

Thank you in advance.

Tom

Labels (1)
2 Replies
Anil_Babu_Samineni

From help it is showing like below link. Check if it helps you

https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptRegularStatement...

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
anushree1
Specialist II
Specialist II

Hi Tom,

I had faced the same issue earlier and got it resolved by adding the below variable before loading the data.Request you to try the same:

SET DirectCacheSeconds= 15;

SET DirectStringQuoteChar=’”’;

SET DirectIdentifierQuoteChar=' ';

SET DirectConnectionMax= 4;

SET DirectTableBoxListThreshold= 100000;

SET DirectDistinctSupport=true;

SET DirectIdentifierQuoteStyle=’ANSI’;