dbTalk Databases Forums  

Monitoring an SSIS package from vb.net + Dts.Step

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


Discuss Monitoring an SSIS package from vb.net + Dts.Step in the microsoft.public.sqlserver.dts forum.



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

Default Monitoring an SSIS package from vb.net + Dts.Step - 04-24-2006 , 02:07 PM






I would like to know how I can monitor the execution of an SSIS package
that has been kicked off from a VB.Net component using the DTExec
command. I did this in VB 6.0 using the reference to Microsoft DTS
package object library and with the following code:
For Each oStep In oPackage.Steps
If oStep.ExecutionStatus = DTSStepExecStat_Completed Then
If oStep.ExecutionResult = TSStepExecResult_Failure Then
Call oStep.GetExecutionErrorInfo(lErrNum, sSource,
sDescription)
sMessage = sMessage & " " & "Step " & oStep.Name & " failed, error:
" & lErrNum & " " & sDescription & "."
End If
End If
Next
Thanks!
Sara

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Monitoring an SSIS package from vb.net + Dts.Step - 04-24-2006 , 02:32 PM






You want to monitor from within the app?

The object library and code you are using is for DTS but you are firing off
an SSIS package. This won't work.

Have a look here in BOL

ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/dtsref9mref/html/M_Microsoft_SqlServer_Dts_Runtime_Application_Load FromSqlServer_3_66b68031.htm

ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/dtsref9mref/html/M_Microsoft_SqlServer_Dts_Runtime_Wrapper_IDTSPack age90_Execute_1_0f2cf976.htm

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Sara" <nospam (AT) devdex (DOT) com> wrote

Quote:
I would like to know how I can monitor the execution of an SSIS package
that has been kicked off from a VB.Net component using the DTExec
command. I did this in VB 6.0 using the reference to Microsoft DTS
package object library and with the following code:
For Each oStep In oPackage.Steps
If oStep.ExecutionStatus = DTSStepExecStat_Completed Then
If oStep.ExecutionResult = TSStepExecResult_Failure Then
Call oStep.GetExecutionErrorInfo(lErrNum, sSource,
sDescription)
sMessage = sMessage & " " & "Step " & oStep.Name & " failed, error:
" & lErrNum & " " & sDescription & "."
End If
End If
Next
Thanks!
Sara

*** Sent via Developersdex http://www.developersdex.com ***



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.