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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Execute and parse result set of stored proc with multiple non-standardized selects

I have run into an issue where I am constrained to calling a stored procedure (mssqlserver) that contains about 8 different selects - none of which have the same schema.  I am trying to figure out the best way to call the stored proc and parse each record set, and since the results are returned using a different structure, I cannot just hook the SP component to the tParseRecordSet component (it demands a specific schema).  My current solution is just stripping each individual select from the SP and running them individually, but this is not ideal because the SP could change (not maintained by my group).  Any suggestions or ideas?

Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hello,


@evansdar wrote:

I have run into an issue where I am constrained to calling a stored procedure (mssqlserver) that contains about 8 different selects - none of which have the same schema.  I am trying to figure out the best way to call the stored proc and parse each record set, and since the results are returned using a different structure, I cannot just hook the SP component to the tParseRecordSet component (it demands a specific schema).  My current solution is just stripping each individual select from the SP and running them individually, but this is not ideal because the SP could change (not maintained by my group).  Any suggestions or ideas?


What does your stored procedure with 8 different selects look like? Could you please set an example for us?

Best regards

Sabrina

Anonymous
Not applicable
Author

To put it succinctly, it searches for different representatives at different institutions with certain titles.

So first query finds Directors and returns id, name, lname; second finds primary program coordinator and returns name,status,status2,id2; 3rd finds financial rep id,name etc.  Unfortunately for me this stored proc is part of a legacy app and I can only exec it, not modify. The result set of each of these are of different schema, so my trouble is how to get the correct data (really only need the id - it is common to all of the selects)