Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Stored Proc issue

Hi All

A bit stuck on stored proc

Trying to input parameters

SQL Execute DB.usp_rp_analysis '1222','20151201','20151231';

but getting no results

1222 is required id

20151201 is from date


20151231 is to date


Getting connection but no results, Any ideas why?


Thanks



1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Managed to resolve the issue after visiting the following

https://community.qlik.com/thread/3223

I did an ODBC connection using Username and password...Jonathan helped in terms of thinking am i doing this wrong!

But it is now working did the folowing

SQL Execute DB.usp_rp_analysis batchid='1222',@startdate='20151201',@enddate='20151231';

View solution in original post

6 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

This problem is in your SQL procedure, rather than in QV. Are the parameters in the correct order, and are they of the correct type and format, especially the dates? What error messages do you get? Does this exact query work in another tool (SQLMS, Toad etc)?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Hi Jonathan

Yes it works in SQLManagementstudio when run

i don't get any error messages it just runs and looks like it worked apart from returning no results

all parameters are in correct order

jonathandienst
Partner - Champion III
Partner - Champion III

Are you running the proc in SQLMS and QV using the same username?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

yes

asgardd2
Creator III
Creator III

How do you call a procedure in QliKView?

I do it like this:

tmpdata:

SQL SELECT OID,NAME FROM GET_OID_NAME(1,1);

Anonymous
Not applicable
Author

Managed to resolve the issue after visiting the following

https://community.qlik.com/thread/3223

I did an ODBC connection using Username and password...Jonathan helped in terms of thinking am i doing this wrong!

But it is now working did the folowing

SQL Execute DB.usp_rp_analysis batchid='1222',@startdate='20151201',@enddate='20151231';