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: 
Not applicable

SP not giving data

Hi All,

I am getting data from SQL using store procedure, and it is not giving any data to my table T. But when I execute in SQL it has values. Any Idea?

Thanks.

T:

LOAD *;

SQL execute DBANME.dbo.sp_name;

8 Replies
Not applicable
Author

You need a semicolon at the end of the A,B,C line, and SQL line

     Costs:

     Load A, B, C ;

     sql exec ABC_CostQlikView ;

You also need to enable "Open database in read write mode" in the connection settings if using stored procedures.

rw.JPG.jpg

fkeuroglian
Partner - Master
Partner - Master

Hi, connect ok? no give any data?

pherhaps some grant permission to your use

1) Use Sql Exec dbo.sp_RUNScoreEncountersINPATIENT  instead of sql execute

or

2)try this

GRANT EXEC ON dbo.xxxxxxx TO<UserName> ?


see this links


How to Call stored procedure in Qlikview


Executing a stored procedure


SQL Stored Procedure into QlikView

Not applicable
Author

Hi Fernando,

Able to connect database.

Tired with EXEC instead EXECUTE, no error message and no data getting back.

My DB connection user id has admin privileges, I hope there is no security issue.

And my SP contains complex logic. But I can execute in SQL side and it is retuning data in SQL database.

Any idea?

Thanks.

Not applicable
Author

Hi Shravan,

Yes, I tried with that as well.

Not applicable
Author

I have another simple SP that is giving me the data to QV. But complex one not giving any data...

Not applicable
Author

Hi,

Did you able to load normal SQL table data directly irrespective of stored procedure?

Not applicable
Author

Hi Kuruthi,

Yes, I am able to load normal table, even I am able to load simple SP.

This scenario my SP contains very complecated logic. Not sure why it is not bringing data to QV.

Any idea?

Thanks.

Not applicable
Author

Hi Kumar,

Thanks for your post!!.

I am facing same issue but that too for a simple table.

I am getting Oracle stored procedure data into QlikView. I have posted the issue in forum at QlikView integration with Oracle Stored procedure FAILS in fetching data and inserting data to oracl...

Could you please take a look at and advise for corrections.

Thanks a lot in advance.

Regards,

Laxmaiah Chowdary