Setting Log File Dynamically in SQL Server 2000 DTS

Setting Log File Dynamically in SQL Server 2000 DTS

February 20th, 2006 // 5:25 pm @

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…



  1. Read the log file path from a config file and store it to a global variable called ErrorLogFile using the Dynamic Properties Task.

  2. 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

Leave a Reply

Latest Posts

Testimonials

"Amar clearly has a thorough knowledge of Sharepoint, this knowledge, coupled with his professionalism and dedication made him a tremendous asset to the project. He was the key contributor to the later stages of the project delivery effort (the really difficult bit, long hours and hard work that puts huge demands on people), and I can state categorically that without his focussed dedication and hard work we would not have been able to meet the timescales imposed upon the project."

Tim Ellis , Sharepoint Project Manager , Royal Bank of Scotland

Subscribe Now