Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

DTS - ActiveX Script concern Expand / Collapse
Posted Thursday, July 16, 2009 3:39 AM

Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, August 29, 2016 8:08 AM
Points: 1,104, Visits: 1,274
Hi All,

I have one DTS package where I shoot mails through ActiveX script in case of any Step/Task gets fails. Here I am able to get the Step details like Name, Description etc., in the Mail body.

However I want to extend this functionality to return the exact/complete Step/Task error in Mail body. I found DTS Step object has GetExecutionErrorInfo method which return the compete error information like ErrorCode, ErrorDescription, ErrorSource etc. So I tried to implement it into my DTS ActiveX script. Further I found I can not pass variables directly to this method/function, these needs to be converted, so finally I tried the below code:

pPkg.Steps(i).GetExecutionErrorInfo CLng(ErrCode), CStr(ErrSource), CStr(ErrDescription)

It get excuted well, but in vain, it does not return anything even if steps get fails.

Can anybody share your expert comments on this?

Thanks in advance,


Post #754019
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse