Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Connecting to stored procedure

I have never pulled data using stored procedure.  I was able to make a connection to the database but don't know where to go from here.

The stored procedure that was loaded is : BookOfBusiness

I have attached what I see when I make a connection to the database

Thanks,

Zag

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

This should execute an return your procedure

SQL EXEC BookOfBusiness;

View solution in original post

8 Replies
andrespa
Specialist
Specialist

Hi,

As far as I know you can't load SP into Qlikview. You can load views instead of a SP, I think the reason is that the SP has some programming behind and Qlikview can't translate it into something that it can be read into the script.

Best regards,

Andrés

zagzebski
Creator
Creator
Author

I have reaed where others have done it - just am clueless since I have never tried.

Clever_Anjos
Employee
Employee

This should execute an return your procedure

SQL EXEC BookOfBusiness;

zagzebski
Creator
Creator
Author

Thanks for the response. I got an error message (below). I was able to connect to this server so not sure why I would get this..

ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: The EXECUTE permission was denied on the object 'BookOfBusiness', database 'EpicSub', schema 'dbo'.

SQL EXEC BookOfBusiness

maxgro
MVP
MVP

it seems you miss the right to execute the procedure

ask your dba for a (probably) grant exec on .... to .....

Clever_Anjos
Employee
Employee

The error message is self-explanatory, you don´t have access to execute that procedure

zagzebski
Creator
Creator
Author

Thanks I will check. Sorry never use a stored procedure before so pretty lost right now.

zagzebski
Creator
Creator
Author

Thanks - that was it.