Setting Log File Dynamically in SQL Server 2000 DTS
February 20th, 2006 // 5:25 pm @ Amar
Very often there are cases when we want to have our DTS package to log error at a different path or file. This can very easily be achieved in the following way…
- Read the log file path from a config file and store it to a global variable called ErrorLogFile using the Dynamic Properties Task.
- Set the Package’s error log to the new value using ActiveX scripting.
set oPackage = DTSGlobalVariables.Parent
oPackage.Properties(“LogFileName”).Value = DTSGlobalVariables(“ErrorLogFile”).Value
Category : SQL Server