Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Aditya_Chitale
Specialist
Specialist

Executing T-SQL statements in Qlik Sense

Hi All,

I have been provided with T-SQL statements which is to be run in Qlik Sense environment.

The sql statements upload daily data into the database (not uploaded from QlikSense).

SQL code looks something like this:

BEGIN
      MYVIEW_DATA.REFRESH_CALL('XYZ');
END;

Executing this code in QS, gives me below error:

Aditya_Chitale_2-1702549400167.png

QlikSense code format Used for SQL statement execution:

Aditya_Chitale_3-1702549424675.png

Any help in resolving this would be appreciated.

 

Regards,

Aditya

 

     

Labels (2)
1 Solution

Accepted Solutions
WaltShpuntoff
Employee
Employee

I do not believe that what you are trying to do will work.

QlikSense is looking for you to load data.

If you were to modify your SQL call to return some value like # records impacted, then you can try loading the return value. You can drop the Qlik table afterwards since you don't really care about that.

-ws

View solution in original post

3 Replies
WaltShpuntoff
Employee
Employee

I am not sure if this would work since it is driver dependent.

Try this:

sql

Exec MYVIEWDATA.REFRESH_CALL('XYZ');

Are you expecting this to return data?

 

-ws

Aditya_Chitale
Specialist
Specialist
Author

Tried this as well. Not expecting to return data. I am using this to push data into the database. same way in which a regular stored procedure can be run in Qlik sense to insert data into database tables.

regards,

Aditya

WaltShpuntoff
Employee
Employee

I do not believe that what you are trying to do will work.

QlikSense is looking for you to load data.

If you were to modify your SQL call to return some value like # records impacted, then you can try loading the return value. You can drop the Qlik table afterwards since you don't really care about that.

-ws