Hi All,
i want to call sqlserver stored prco in Datastage, but the problem is STP stage allows anly oracle,DB2 and sybase stored proc. and ODBC stage don't have the outlink in it.
My requirement is to set some parameter to stored proc as input and take some return parameter as output.
What needs to be done. please please reply soon your best comments to me.
Thanks in Adv.
How to call sqlservers stored proc?
Moderators: chulett, rschirm, roy
Re: How to call sqlservers stored proc?
And here I was hoping I could wait for awhile and then reply with something completely off-topic and useless.ds_ashish wrote:What needs to be done. please please reply soon your best comments to me.
Your 'and take some return parameter as output' requirement means your only choice is to follow some form of Ken's plan. Either that or something totally InSAnE like rewriting the SP functionality in a DataStage job! [gasp!]
Never did see the fascination with stored procedures that some places have... grumble... grumble...
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
What you mean by this? If you drag a output link from a ODBC, you should get one. If you need to pass some parameter, drag a link from a transformer stage placed upfront. The value can be Job parameter. Make sure you limit it number of row to 1.ODBC stage don't have the outlink in it.
And why you need to create a duplicate topic for the same?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Interesting... I thought they meant the ODBC stage did not support the capture of returned result sets from a stored proc. I've never had a reason to look into this as it's not something I generally need to do or do for that matter.
However, in reading the online Help it does say the ODBC stage supports this functionality. It does look like you have to import the metadata first and there may be restrictions (ala the STP stage) on the nature of the SP and how exactly it returns rows, but it allegedly can be done.
So, rethink your 'ODBC stage don't have the outlink on it' comment and give it a shot.
However, in reading the online Help it does say the ODBC stage supports this functionality. It does look like you have to import the metadata first and there may be restrictions (ala the STP stage) on the nature of the SP and how exactly it returns rows, but it allegedly can be done.
So, rethink your 'ODBC stage don't have the outlink on it' comment and give it a shot.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers