Returning recordset using a Stored Procedure

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Returning recordset using a Stored Procedure

Post by Sreenivasulu »

Hi All,

I am calling a SP residing in Microsoft SQL Server

Can we return a recordset using a stored procedure ?

Regards
Sreeni
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What does the documentation say?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Hi Craig

Documentation has the tabs and settings for implementing this functionality.

Will try this out and get back to you

Regards
Sreeni
harsh_cs31
Participant
Posts: 9
Joined: Fri Jul 17, 2009 11:42 am

We can use the SP stage

Post by harsh_cs31 »

We can use the SP stage in the Parallel job, but this will be a source, we cannot use this in between.
Using this stage we can return the dataset.
Hope it helps
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Thanks for all your inputs plus the doucmentation ..
This is working. Only thing is that it returns an additional record with value 0 denoting success. Handling this record in the transformer.

Now i Need to try getting a cursor as an output. There is a option enabled for this. Will try that out.

Regards
Sreeni
Post Reply