Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

DTS - ActiveX Script concern Expand / Collapse
Author
Message
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: Tuesday, July 15, 2014 2:10 AM
Points: 1,093, Visits: 1,221
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,

Mahesh


MH-09-AM-8694
Post #754019
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse