dbTalk Databases Forums  

GetExecutionErrorInfo fails...help

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


Discuss GetExecutionErrorInfo fails...help in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom P
 
Posts: n/a

Default GetExecutionErrorInfo fails...help - 05-18-2005 , 02:53 PM






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")

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: GetExecutionErrorInfo fails...help - 05-18-2005 , 03:17 PM






Finally got round to it, see your original post...

Darren

In message <9C2AEDE3-6A9D-46F2-9E42-975269622AFD (AT) microsoft (DOT) com>, Tom P
<TomP (AT) discussions (DOT) microsoft.com> writes
Quote:
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

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.