Mar 2, 2006 #1 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.
Can anyone point me to some code to do this? I've been searching to no avail. Any help appreciated. Thanks.
Mar 2, 2006 Thread starter #2 Cloonalt Programmer Jan 4, 2003 354 US 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 Upvote 0 Downvote
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