SSIS package & Ms Access

neoklis

Registered User.
Local time
Today, 19:22
Joined
Mar 12, 2007
Messages
80
Hi,

I’ am trying to execute a SSIS package from MS Access. I have made the package, I have add reference to Microsoft DTSPackage Object Library and finally write the on button click procedure listed below

Dim oPKG As New DTS.Package
oPKG.LoadFromSQLServer "HLCTUB001", , , _
DTSSQLStgFlag_UseTrustedConnection, , , , "Package1"

oPKG.Execute
oPKG.UnInitialize
Set oPKG = Nothing


The code is not executing correctly and comes the error:

The specified DTS Package(‘Name=’Package1’;ID.VersionID={[not specified]}.{[not specified]}’) does not exist

I suspect that the execution method is not right cause it has reference to a DTS package. I think I have to change something to my code but I don’t know what.

Any help is appreciated
 

Users who are viewing this thread

Back
Top Bottom