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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using SQL scalar variables in qlikview script

Hi all,

I want to run a SQL query that makes use of several scalar variables. I replaced those with a fixed value with qlikview variables as it is the same thing, but there are some more declared with no initial value as it is dynamic.

Does anyone know how I can use the

SQL declare @bla int
SQL select...

bit in qlikview script? It doesnot seem to like the syntax no matter what I do.

Thanks

Labels (1)
3 Replies
rbecher
Partner - Master III
Partner - Master III

Hi Joseph,

the SQL statement is passed directly to the database. This could probably work but syntax will not be checked on QlikView site.

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

Thanks Ralf, I am waiting for confirmation that the error codes dont have to do with the backend.

rbecher
Partner - Master III
Partner - Master III

Which error code? SQL errors? Just post here..

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine