Mehawitchi
asked on
How do I run an SSIS package from VBA application?
Hello Experts,
I have a VBA application that executes a SQL Server SSIS package. When it executes I get the this error (please see message box)
This is the code I'm using in my application:
Sub ExecutePackage()
Dim oPKG As New DTS.Package
oPKG.LoadFromSQLServer "MBC_Laptop", , , _
DTSSQLStgFlag_UseTrustedCo nnection, , , , "MBC_Net"
oPKG.Execute
oPKG.UnInitialize
Set oPKG = Nothing
End Sub
Please note that I can execute the package directly from the server. I can also execute it from VB.Net application using the following code:
Sub RunSSIS()
Dim pkgLocation As String
Dim pkg As New Package
Dim app As New Application
Dim pkgResults As DTSExecResult
pkgLocation = _
"D:\VB Projects\My Test Procedures\Import New Media Stats\Import New Media Stats\bin\Deployment\MBC_N et.dtsx"
pkg = app.LoadPackage(pkgLocatio n, Nothing)
pkgResults = pkg.Execute()
Console.WriteLine(pkgResul ts.ToStrin g())
End Sub
Could someone please advise me how to run SSIS from VBA application
I have a VBA application that executes a SQL Server SSIS package. When it executes I get the this error (please see message box)
This is the code I'm using in my application:
Sub ExecutePackage()
Dim oPKG As New DTS.Package
oPKG.LoadFromSQLServer "MBC_Laptop", , , _
DTSSQLStgFlag_UseTrustedCo
oPKG.Execute
oPKG.UnInitialize
Set oPKG = Nothing
End Sub
Please note that I can execute the package directly from the server. I can also execute it from VB.Net application using the following code:
Sub RunSSIS()
Dim pkgLocation As String
Dim pkg As New Package
Dim app As New Application
Dim pkgResults As DTSExecResult
pkgLocation = _
"D:\VB Projects\My Test Procedures\Import New Media Stats\Import New Media Stats\bin\Deployment\MBC_N
pkg = app.LoadPackage(pkgLocatio
pkgResults = pkg.Execute()
Console.WriteLine(pkgResul
End Sub
Could someone please advise me how to run SSIS from VBA application
Dear Friend,
I've posted some time ago in my blog a post abou calling ssis package from an ASP application. Maybe it help you... check www.pedrocgd.blogspot.com
just a tip : Calling a SSIS package from a asp application from a ASP siet requires SSIS installed on websserver... in your case you must have SSIS installed in machine you have the excel file...
I hop it helps you!
regards
I've posted some time ago in my blog a post abou calling ssis package from an ASP application. Maybe it help you... check www.pedrocgd.blogspot.com
just a tip : Calling a SSIS package from a asp application from a ASP siet requires SSIS installed on websserver... in your case you must have SSIS installed in machine you have the excel file...
I hop it helps you!
regards
ASKER
Thanks Pedro,
You do have an interesting website, but unfortunately it does not help in my problem.
My problem is related to VBA not ASP.
On a separate note, I wanted also to go to BI Conference in Seatle, but couldn't afford. May be we meet next conference.
Cheers,
You do have an interesting website, but unfortunately it does not help in my problem.
My problem is related to VBA not ASP.
On a separate note, I wanted also to go to BI Conference in Seatle, but couldn't afford. May be we meet next conference.
Cheers,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
error-message.jpg