I am trying to stop SSIS packets at runtime using this code
RunningPackages pkgs = app.GetRunningPackages("myserver");
foreach (RunningPackage p in pkgs)
{
Console.WriteLine("PackageName: " + p.PackageName);
p.Stop();
}
Runtime errors
However, when I debug the pause between each package stop and move on to viewing the running packages in SQL Server Manage Studio, I still see all the packages.
I even try to right-click and choose a stop on running packages, and they will not stop.
If anyone has an understanding of this, please advise me, I combed through Google and canβt find anything. Any help would be greatly appreciated.
source
share