Komut dosyası görev sonuçları döndürülüyor
Komut dosyası görev kullanır TaskResult ve isteğe bağlı ExecutionValue durum bilgilerini dönmek için Özellikler Integration Services belirlemek için kullanılan çalışma zamanı yol Script görevi bittikten sonra iş akışı'nın.
TaskResult
The TaskResult property reports whether the task succeeded or failed.Örneğin:
Dts.TaskResult = ScriptResults.Success
ExecutionValue
The ExecutionValue property 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 dosyaları sayısını döndürmek için özellik transfer.sql Yürüt görev görev tarafından etkilenen satırların sayısını verir.The ExecutionValue can also be used to determine the path of the workflow.Örneğin:
Dim rowsAffected as Integer
...
rowsAffected = 1000
Dts.ExecutionValue = rowsAffected
|