SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DTS - ActiveX Script concern


DTS - ActiveX Script concern

Author
Message
Mahesh Bote
Mahesh Bote
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1686 Visits: 1286
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search