I am trying to execute a SSIS package via a web application built in c#. I found a sample to read the output of a data flow task, but I'm stuck. If I build the command line syntax for the package, create a DtsConnection object and set the connection string to the syntax, what else do I need to do Thanks.
Clay

Execute a SSIS master package through an ASP.NET web app
im4nits
Does your BOL version have our topic, "Loading Data Flow Results into a Client Application "
-Doug
rdelgado
CS Chan
-Doug
Mekk Elek
Note that this is an MSDN temporary staging location, before they publish the September CTP BOL to the live MSDN site, so this link may be invalid by tomorrow...please don't bother saving or redistributing it. All of the September BOL will be available shortly on http://msdn.microsoft.com.
-Doug
HarryChou
Excellent! I can open the package and return a result which currently is failed. Can I assign variables from here as well
Neetan
Marcus Alexandre
Thanks for your help!
Mike Frazer
Sure, that's the BOL topic currently named "Running an Existing Package from a Client Application." It's basically just Load and Execute (as in DTS). Here's the VB sample from that topic (as a console app).
-Doug
Imports Microsoft.SqlServer.Dts.Runtime
Module Module1
Sub Main()
Dim pkgLocation As String
Dim pkg As New Package
Dim app As New Application
Dim pkgResults As DTSExecResult
pkgLocation = _
"C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx"
pkg = app.LoadPackage(pkgLocation, Nothing)
pkgResults = pkg.Execute()
Console.WriteLine(pkgResults.ToString())
Console.ReadKey()
End Sub
End Module
Wa1d0
A call to the Variables collection with an index or name will return a Variable object. You modify its Value property.
Sandeepn75
Thanks for all your help! I am trying to set variables as we speak.