Hi!
I was following this article http://www.codeproject.com/useritems/Execute_Package_by_C_.asp to execute list of SSIS packages via vb.net. I created a windows application in server A copied the exe file in server B. the SSIS package is in server B. I deployed the package and it runs file vis integration server. below are my codes. everytime i run the exe in server B. I can see the list of packages but when i hit execute button i get error msgs that says "failure" I am not sure how to get more error out of it. I am not sure whats causing this error.
----------------------------
Imports
System.Data.SqlTypesImports
System.Data.SqlClientImports
Microsoft.SqlServer.Management.SmoImports
Microsoft.SqlServer.Management.Smo.AgentImports
Microsoft.SqlServer.Dts.RuntimeImports
Microsoft.SqlServer.Management.CommonPublic
Class Form1Dim app AsNew Microsoft.SqlServer.Dts.Runtime.Application()Dim pInfos As PackageInfos = app.GetPackageInfos("\\", "SQLKEV", "", "")PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.LoadForEach pInfo As PackageInfo In pInfosIf pInfo.Name <> "Maintenance Plans"Then
ComboBox1.Items.Add(pInfo.Name)
EndIfNextEndSubPrivateSub btnExec_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExec.ClickDim app As Microsoft.SqlServer.Dts.Runtime.Application
app =
New Microsoft.SqlServer.Dts.Runtime.Application()Dim pkgResults_Sql As DTSExecResultDim pkgIn AsNew Package()TrypkgIn = app.LoadFromSqlServer(
"" + ComboBox1.SelectedItem.ToString().Trim(), "SQLKEV", "", "", Nothing)pkgIn.PackagePassword =
"password21"pkgResults_Sql = pkgIn.Execute()
MessageBox.Show(pkgResults_Sql.ToString())
Catch ex As ExceptionMsgBox(
"this is an exception" + ex.ToString)EndTryEndSub
End
Class----------------------------
please help