![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
There are 3 packages running on my server which are similar except for the path that an executable runs at. If I right click the package in Enterprise Manager and execute it, it fails. If I go into design mode and execute it, it intermittently picks the wrong path to execute on which I can see when the command window opens up on execution. If I go into the properties of the task and reselect the executable, and save, then the correct path is used. Any ideas why it appears to be caching the wrong path? The path is from one of the other packages. I'm running on: Microsoft SQL Server 2000 - 8.00.760 Build 3790 Any ideas why the path appears to be cached incorrectly? I'm accessing the box that the SQL server runs on through Remote Desktop Connection. Next step is to access the packages through their interfaces and query the properties of the tasks before executing them. |
#3
| |||
| |||
|
|
If you load a package and change a property anywhere in that package it is changed, but will not be persisted further than that instance of the package object scope, unless you save the package. |
#4
| |||
| |||
|
|
Yes - that's the odd part of it. I'm not actually changing the path, for some reason I have to touch it to make it work; more specifically, I just reselect the executable from the properties window - the directory path is correct. |
#5
| |||
| |||
|
|
Yes - that's the odd part of it. I'm not actually changing the path, for some reason I have to touch it to make it work; more specifically, I just reselect the executable from the properties window - the directory path is correct. I verified through the DTS COM interface that the command line was correct; so it must either be a caching problem or a rights problem: '*********************** sDTSName = "Translations" oDTSPackage.FailOnError = True Set oDTSPackage = New Package2 oDTSPackage.LoadFromSQLServer sDTSServer, sDTSUID, sDTSPWD, DTSSQLStgFlag_Default, , , , sDTSName Dim task2 As DTS.CreateProcessTask2 Debug.Assert "DTSTask_DTSCreateProcessTask_2" = oDTSPackage.Tasks(6).CustomTask.Properties(1).Valu e Set task2 = oDTSPackage.Tasks(6).CustomTask Debug.Print "US:" & task2.ProcessCommandLine Set oDTSPackage = Nothing |
![]() |
| Thread Tools | |
| Display Modes | |
| |