![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I inherited some code that executes a DTS package that pulls from a site in Australia. Works great, unless someone in Oz decides to turn off our access, in which case login fails. When we run it from inside Enterprise Manager, we are dutifully informed what happened. When we run it from a VB6 app using the code below, no error is thrown: On Error GoTo error_hander Dim oPackage As New DTS.Package oPackage.LoadFromSQLServer sServername, , , _ DTSSQLStgFlag_UseTrustedConnection, , , , sPackagename oPackage.Execute 'Clean up. Set oPackage = Nothing FireDTS = True Exit Function error_hander: MsgBox "Error occured", vbCritical FireDTS = False End Function Is this the expectation, or are we doing something wrong? I recently found http://support.microsoft.com/?kbid=221193, which I will try out next week. My question is whether this is the best approach, or whether I should be doing something different. TIA! John |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |