![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I know that GetExecutionErrorInfo doesn't work when called from within a VB script. So I downloaded the zip file that the ActiveXHelper COM object from http://www.sqldts.com/redir.aspx?45, and registered the ActiveXHelper DLL as a COM object, but still can't get the function to work within a script. Can you maybe tell me what I'm doing wrong? Here's a code snippet: dim objStepError Set objStepError = CreateObject("DTSActiveXHelper.HelperClass") . . . For Each oStep in oPkg.Steps If oStep.ExecutionStatus = DTSStepExecStat_Completed Then If oStep.ExecutionResult = DTSStepExecResult_Failure Then objStepError.GetExecutionErrorInfo oStep,lErr, sSource, sDesc,NULL,NULL,NULL MsgBox lErr End If End If Next BTW, I registered the object by just running regsvr32 from a command line. Thanks, Tom |
![]() |
| Thread Tools | |
| Display Modes | |
| |