the Package.Execute() returns a DTSExecResult enum... in case of any error
the Execute method will return DTSExecResult.Failure
http://msdn2.microsoft.com/en-us/library/ms190901(printer).asp
http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.dtsexec
result(printer).aspx
hope this helps

Signature
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin
> With the example of the MSDN document, I can know if the job has started
> successfully, but not if the package fails for every kind of problem.
[quoted text clipped - 3 lines]
>
> Luigi
Luigi - 13 Mar 2008 15:50 GMT
> the Package.Execute() returns a DTSExecResult enum... in case of any error
> the Execute method will return DTSExecResult.Failure
[quoted text clipped - 3 lines]
>
> hope this helps
Thank you for the links Misbah, but this code is useful (I think) only for
.NET Framework 1.X, not for 2.0 version, because there is not the namespace:
using Microsoft.SqlServer.Dts.Runtime;
in Visual Studio 2005.
How can I solve this problem?
Luigi
Misbah Arefin - 13 Mar 2008 18:13 GMT
no it is not 1.x specific you just need to add a reference for this DLL in
your project
C:\Program Files\Microsoft SQL
Server\9.0\SDK\Assemblies\Microsoft.SQLServer.ManagedDTS.dll

Signature
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin
> > the Package.Execute() returns a DTSExecResult enum... in case of any error
> > the Execute method will return DTSExecResult.Failure
[quoted text clipped - 13 lines]
>
> Luigi