Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exeucte a SQL DTS Package from MS Access

Status
Not open for further replies.

Cloonalt

Programmer
Jan 4, 2003
354
US
Can anyone point me to some code to do this? I've been searching to no avail.

Any help appreciated.

Thanks.
 
This code works for me and I'll share it here:

Const DTSSQLStgFlag_UseTrustedConnection = 256
Dim dtsp As New DTS.Package

Dim pkg As DTS.Package
Set pkg = New DTS.Package
pkg.LoadFromSQLServer "ServerName", , , DTSSQLStgFlag_UseTrustedConnection, , , , "Daily_Import"

pkg.Execute
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top