Routine to Call SQL Server Stored Proc?
Posted: Thu May 18, 2006 5:05 pm
Anyone done this? I saw a previous post from awhile ago of a user trying to call a stored procedure through a routine. He was doing this in order to support input/output arguments. I have a similar problem:
I have a job that is similar in flow to:
The important things to note:
1. The stored procedure has input args and returns output args
2. The stored procedure takes values from Oracle OCI, but lives in SQL Server
3. SQL Server stored procedures aren't supported in the standard DataStage StoredProc stage, so ODBC is the way
I'm thinking I could call the custom routine in a transformer thus making it flow like:
Thoughts?
I have a job that is similar in flow to:
Code: Select all
OCI --> StoredProc --> OCIThe important things to note:
1. The stored procedure has input args and returns output args
2. The stored procedure takes values from Oracle OCI, but lives in SQL Server
3. SQL Server stored procedures aren't supported in the standard DataStage StoredProc stage, so ODBC is the way
I'm thinking I could call the custom routine in a transformer thus making it flow like:
Code: Select all
OCI --> Transformer --> OCIThoughts?