Komut dosyası görevden sonuçları döndürülüyor
Komut dosyası görev kullanır TaskResult() ve isteğe bağlı ExecutionValue() durum bilgileri için özellikleri Integration Services Görev komut tamamlandıktan sonra iş akışının yolunu belirlemek için kullanılabilir çalışma zamanı.
TaskResult
The TaskResult() özellik reports whether the task succeeded or failed. Örneğin:
Dts.TaskResult = ScriptResults.Success
ExecutionValue
The ExecutionValue() özellik optionally returns a user-defined object that quantifies or provides more information about the success or failure of the Script task. Örneğin, FTP görev kullanır ExecutionValue() dosya sayısını döndürmek için özellik transfer. SQL Yürüt) görevi, görev tarafından etkilenen satırların sayısını verir.The ExecutionValue() can also be used to determine the yol of the workflow. Örneğin:
Dim rowsAffected as Integer
...
rowsAffected = 1000
Dts.ExecutionValue = rowsAffected
|