dbTalk Databases Forums  

DTS Step Fail Vs SQL Job

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS Step Fail Vs SQL Job in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SQL Replication Guy
 
Posts: n/a

Default DTS Step Fail Vs SQL Job - 07-25-2006 , 10:00 AM






I have a DTS package which has two data transformations tasks-

If 1st data transformation task fails then package executes the 2nd data
transformation task and subsequent sql steps.

Here is the problem I am facing - When I schedule this package as SQL job,
it shows as failed everytime 1st data transformation task fails though its
not failure for the logic I have in DTS).

Any suggestions to solve this problem to not to show as SQL job failure...

Regards

Reply With Quote
  #2  
Old   
SP
 
Posts: n/a

Default RE: DTS Step Fail Vs SQL Job - 07-25-2006 , 06:03 PM






Hi,

The job status is failed because the dts package has failed. if you put an
active X script task with following script


'************************************************* *********************
' Visual Basic ActiveX Script
'************************************************* ***********************

Function Main()
Main = DTSTaskExecResult_Success
End Function

This will change the status return to success of the DTS package. and the
job will run success too even if one of the task in DTS failed.

Hope this helps


"SQL Replication Guy" wrote:

Quote:
I have a DTS package which has two data transformations tasks-

If 1st data transformation task fails then package executes the 2nd data
transformation task and subsequent sql steps.

Here is the problem I am facing - When I schedule this package as SQL job,
it shows as failed everytime 1st data transformation task fails though its
not failure for the logic I have in DTS).

Any suggestions to solve this problem to not to show as SQL job failure...

Regards

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.