Executing MSSQL Stored Procedure

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
aluthra48
Participant
Posts: 66
Joined: Thu Mar 05, 2009 9:59 am

Executing MSSQL Stored Procedure

Post by aluthra48 »

Hello,

I have a job that executes a stored procedure. The procedure requires one parameter, which is passed to it from a DRS stage using a select from a sql server table. Thus you can bring in one or more rows as input to the sp. The sp stage is configured to "Execute procedure for each row".

The job aborts with the following error:
APT_CombinedOperatorController,0: Fatal Error: Fatal [IBM(DataDirect OEM)][ODBC SQL Server Driver]Invalid Cursor state

The error occurs even if I pass only one row. If I pass a parameter using an environment or a local variable (one value, obviously), the job runs successfully.

Any ideas?

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

Post by Sreenivasulu »

We are also getting this issue wherein if we hardcode the parameter it works fine but not with paramter set.

Both are in the same boat :)

Regards
Sreeni
aluthra48
Participant
Posts: 66
Joined: Thu Mar 05, 2009 9:59 am

Post by aluthra48 »

A PMR with IBM has been created
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

I got the same erro using SP stage.
I checked in output tab 'returns multiple rows' and it worked.

Regards
Sreeni
aluthra48
Participant
Posts: 66
Joined: Thu Mar 05, 2009 9:59 am

Post by aluthra48 »

A patch has been issued which we will aplly this Monday
Post Reply