Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

package.Execute() always returns 'Failure', even though running the .dtsx manually doesn't cause any errors

$
0
0

Okay, so I've got a pretty simple dtsx package that I've created manually, which consists of one sql task, so when I run it manually in Data Tools, it executes just fine.

Now, when I load the very same package from disk, and try to execute it, the result code returns 'Failure'.

Can anyone elaborate?

Here is the code for loading and executing the package:

Dim app As Application = New Application()
Dim pckg As Package = app.LoadPackage("C:\Users\zafir\Desktop\Package1.dtsx", Nothing)
Dim pckgResult As DTSExecResult = pckg.Execute()
Console.WriteLine(pckgResult.ToString())


Viewing all articles
Browse latest Browse all 24688

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>