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

SSIS Back Up Database Task Failed in Winform Only

$
0
0

Hello guys

I have this weird problem with my SSIS package, it works fine in BIDS, works fine as a SQL Agent Job, but as soon as I run in within my winform using Package.LoadPackage, the "Back Up DataBase Task" magically failed. I put a data flow task before and after the back up task to see if the package was excuted at all and it did, the first data flow task was executed successfully however it stops when trying to back up the database. I have add users to Local DCOM Group and I have given permissions to the user under security tab in MsDtsServer100, but nothing helps. Does any1 know what could cause the problem? btw. no error messages were given at any time during this process.

========================In my winform i have====================

string pkgLocation;Package pkg;Microsoft.SqlServer.Dts.Runtime.Application app;DTSExecResult pkgResults;

pkgLocation =@"C:\Integration Services Project1\obj\Development\Package.dtsx";

app =newMicrosoft.SqlServer.Dts.Runtime.Application();

pkg = app.LoadPackage(pkgLocation,null);

pkgResults = pkg.Execute();foreach(DtsWarning w in pkg.Warnings){MessageBox.Show(w.Description);}MessageBox.Show(pkgResults.ToString());

================================================================


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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