Page 1 of 1
Reset Failure
Posted: Tue Oct 21, 2008 11:36 am
by w126
we have serverjob where we use an ODBC to connect to Sql Server and the job is designed in such a way that it runs a store procedure. we run this job using a perl script .Based on the previous status of the job it will wither Reset and Run the Job or Directly Runs the Job. The Issue with our job is the Store Procedure is Beeing Executed Twice when Ever the Previous Status Of the Job is in aborted status. And I had found that it is beeing executed During the Reset Run and Normal Run
Can Any one Let me know Why the Store Procedure is beeing Executed During the RESET
Posted: Tue Oct 21, 2008 11:54 am
by chulett
How exactly is your script doing the "reset"? Post your script or at least that relevant portion.
Posted: Tue Oct 21, 2008 11:58 am
by w126
this is one we are using for the Reset
$ENV{DSTAGE_EXE}/dsjob -run -mode RESET -wait $project_nm $job_nm1`;
For the Run We are using
`$ENV{DSTAGE_EXE}/dsjob -run -mode NORMAL -wait -jobstatus $job_param1 $project_nm $job_nm1`;
While Reset it is Taking the Params from the Previous Run
Posted: Tue Oct 21, 2008 12:05 pm
by chulett
OK, that all looks fine. So, your ODBC Action is set to "Call stored procedure"? If that actually runs the proc during a reset, I'd report that as a bug to your official support provider.
Posted: Wed Oct 22, 2008 9:06 am
by w126
Before Opening a Ticket i just want to make sure will the Reset/validate of DS Job invoke the Call Statement
Posted: Wed Oct 22, 2008 9:28 am
by chulett
You'd need to open a ticket to find out the "official" answer to that question. I don't think it should but then I don't use the ODBC stage.
Posted: Fri Oct 31, 2008 12:55 pm
by w126
Reset/validate of DS Job will invoke the Call Statement . inoder to see that the Store pRoc is Not executed you need to pass a variable so that Store Proc Knows whether u are Resting or Running a Normal Run
Posted: Fri Oct 31, 2008 2:58 pm
by chulett
So that's the official answer, eh? Yuck.
Still seems like a bug to me. [shrug]