Re: Revealing error info from objects instanced in script tasks
From: Darren Green (darren.green_at_reply-to-newsgroup-sqldts.com)
Date: 11/15/04
- Next message: Darren Green: "Re: Get Servername where Package is Stored"
- Previous message: Allan Mitchell: "Re: import multiple files with subdirectories"
- In reply to: Lee Gillie: "Revealing error info from objects instanced in script tasks"
- Next in thread: Lee Gillie: "Re: Revealing error info from objects instanced in script tasks"
- Reply: Lee Gillie: "Re: Revealing error info from objects instanced in script tasks"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 15 Nov 2004 20:28:23 +0000
In message <uF1caW0yEHA.2316@TK2MSFTNGP15.phx.gbl>, Lee Gillie
<Lee@nospam.odp.com> writes
>I am programmatically loading and executing packages from VB.NET. When
>ActiveX script tasks instance objects, such as ADO, and those objects
>fail, the only error indication I get is a GENERAL DTS error. The error
>of the underlying object, from the script, is lost. For example, ADO
>COMMAND TIMEOUT.
>
>In the VB.NET code which executes the package, I trap exceptions at
>execution, I report all available error indicators I can find, and I do
>a post-mortem dump of the error data in the steps, but no where do I
>see the scripted object error indicator.
>
>The pattern seems to be when ActiveX instances an object, and IT has an
>error, then it perculates up through DTS as a "general error", which
>hides the real problem. Is there ANY way to get more diagnostic
>information when executing programmatically?
>
>I am sure this must have been asked before, but I researched some FAQ
>and could not find it.
Try using events, as sometimes this can give you more info than the
GetExecutionErrroInfo method from the step.
HOW TO: Use DTS Package Events in Visual Basic .NET
(http://support.microsoft.com/default.aspx?scid=kb;en-us;321525)
-- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org
- Next message: Darren Green: "Re: Get Servername where Package is Stored"
- Previous message: Allan Mitchell: "Re: import multiple files with subdirectories"
- In reply to: Lee Gillie: "Revealing error info from objects instanced in script tasks"
- Next in thread: Lee Gillie: "Re: Revealing error info from objects instanced in script tasks"
- Reply: Lee Gillie: "Re: Revealing error info from objects instanced in script tasks"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|