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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can not execute SQL SEVER Stored Procedure in Qv

Hi Everyone,

Anybody knows how to load data from stored procedure?

I need to load data from sql server Stored Precedure in Qlikview. But each time no data or table loaded without error message.

Connect to sql server OK. The script work fine in sql server client.

I wrote the script like this:

Capture.PNG

Below is the ending snapshot after finished reloading.

Capture1.PNG

30 Replies
Not applicable
Author

You're right! Finally I solved my issue. I add "SET NOCOUNT ON;" in the SP script. Thank you and you all.

The final script i used in Qv is like this, very simple:

1. Connection String

OLEDB CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=[DATABASENAME];Data Source=[SOURCENAME];Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=[WORKSTATIONNAME];Use Encryption for Data=False;Tag with column collation when possible=False];

2. SQL String

sql

exec Stored_ProcedureName 100,'A';