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

No. everything is fine. Thank you.

markodonovan
Specialist
Specialist

Is the 'Generate Log' option on in the Document properties ?

If so, can you check the log for any problems.

Thanks

Mark

techstuffybooks.com

sorrakis01
Specialist
Specialist

Hi Duo,

A simple question: Can you connect to the database and load a simple query, without problems?

Regards,

Not applicable
Author

Yes, without any problem.

I'm trying Normelio Junior's solution as you recommended.


1. I have checked "Open database in Read and Write mode"

2. Add "Mode is write".

    The difference between me and the example Normelio Junior posted is that i have no user name and password because i log on to server by Windows profile.

3. Correctly wrote the script calling the stored procedure.


But No data and table returned. I don't know why.

Anonymous
Not applicable
Author

can you check which user is connecting to SQL Server from qlivkiew?

can you try to open SQL Server with same user and see if you can execute stored procedure?

mostly qlikview is using a technical user while connecting to SQL Server is done by your Windows user

both Need same permissions, please check

sorrakis01
Specialist
Specialist

Hi,

then use the counsel of Mark. Generate the Log.

Another question: You can call this procedure from another software and it response ok?

Regards

Not applicable
Author

Thank you. I looked the log file.

There is a parameter "ScriptWantsExe" which value is "false".  May this caused the issue?

markodonovan
Specialist
Specialist

Mine is false and works ok.

Must be something else.

Mark

markodonovan
Specialist
Specialist

What does it say in the log when your call the stored procedure?

Mine is like this:

31/07/2015 10:37:17: 0076  OLEDB CONNECT*Provider*

31/07/2015 10:37:17: 0078  load *

31/07/2015 10:37:17: 0079  sql exec get_test_data

31/07/2015 10:37:17:           1 fields found: branch, 19 lines fetched

31/07/2015 10:37:17: 0082  exit script

31/07/2015 10:37:18:      Execution finished.

Thanks

Mark

techstuffybooks.com

Not applicable
Author

I used my Windows Account and Password when logging on to sql server both from qlikview and sql server management studio.