Executing SQL Server 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
raj_cipher
Participant
Posts: 90
Joined: Mon Dec 08, 2003 4:48 am
Location: Chennai

Executing SQL Server Stored procedure

Post by raj_cipher »

Hi,

I am calling a SQL Server stored procedure using an ODBC stage. The stored proc is inserting rows in few tables. The job runs to successful completion but there were no rows inserted. When the stored procedure is executed via query analyser it is inserting rows. I am not able to find out what is the issue. Is there any way that i could get more info from the log or to nail down the issue?
Think Ahead,
Raj.D
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Are you getting any warning messages? It is kind of hard to tell whats going on without any info on design and error message.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
raj_cipher
Participant
Posts: 90
Joined: Mon Dec 08, 2003 4:48 am
Location: Chennai

Post by raj_cipher »

No warning messages DSGuru :cry: Yes it is getting too hard for me.
I am looking for a way that would give me more log messages.
Think Ahead,
Raj.D
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Try with the STP stage.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
raj_cipher
Participant
Posts: 90
Joined: Mon Dec 08, 2003 4:48 am
Location: Chennai

Post by raj_cipher »

STP stage doesn't support SQL Server, right?
Think Ahead,
Raj.D
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Yea. You are right, I just checked the docs.
Coming back to odbc stage, are you calling the stored proc at the target level?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
raj_cipher
Participant
Posts: 90
Joined: Mon Dec 08, 2003 4:48 am
Location: Chennai

Post by raj_cipher »

My server version is 7.5.1.A. But the pdf says it supports DB2,Oracle and Sybase. But will give that a try.
Think Ahead,
Raj.D
raj_cipher
Participant
Posts: 90
Joined: Mon Dec 08, 2003 4:48 am
Location: Chennai

Post by raj_cipher »

Got this resolved. There was a problem with the DB. DBA resolved it.
Think Ahead,
Raj.D
raj_cipher
Participant
Posts: 90
Joined: Mon Dec 08, 2003 4:48 am
Location: Chennai

Post by raj_cipher »

Yes DSGuru. The SP is called at the target level.
Think Ahead,
Raj.D
roblew
Charter Member
Charter Member
Posts: 123
Joined: Mon Mar 27, 2006 7:32 pm
Location: San Ramon

Post by roblew »

Hi,

We're also trying to call a SQL Server stored procedure from DS. It seems that only the "ODBC" Server stage has the stored procedure option. I do not see the stored procedure option in the "ODBC Enterprise" or "Stored Procedure" PX/EE stages.

Am I missing something? Did you register the Server version of the ODBC stage in your parallel job?

thanks,
Rob
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

Rob,
ODBC Enterprise Stage doesn't have a "stored procedure" option. You are not missing anything.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

roblew wrote:I do not see the stored procedure option in the "ODBC Enterprise" or "Stored Procedure" PX/EE stages.
What "stored procedure option" would you be looking for in the Stored Procedure stage? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
roblew
Charter Member
Charter Member
Posts: 123
Joined: Mon Mar 27, 2006 7:32 pm
Location: San Ramon

Post by roblew »

chulett wrote:
roblew wrote:I do not see the stored procedure option in the "ODBC Enterprise" or "Stored Procedure" PX/EE stages.
What "stored procedure option" would you be looking for in the Stored Procedure stage? :?
sorry, I meant to say that there's no SQL server option in the stored procedure stage, which has already been mentioned.

Thanks
Post Reply