![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How can I wirte to task log file the object DTSPackageLog is not woking it just complains Object Required. Can someone please tell me how can I get |
|
thanks |
#3
| |||
| |||
|
|
How can I wirte to task log file the object DTSPackageLog is not woking it just complains Object Required. Can someone please tell me how can I get reference to taht object I have searched the complete msdn and there is no documentation on this. thanks |
#4
| |||
| |||
|
|
In an ActiveX Script Task you can use the DTSPackageLog object- DTSPackageLog.WriteStringToLog "My String" DTSPackageLog.WriteTaskRecord 1, "Desc" See the PackageLog object in Books Online for documentation of this object. Unfortunately the DTSPackageLog object is only available inside the ActiveX Script Task. It is not available in transformation or workflow scripts. One option for logging inside a transformation script is to use a lookup to write to a SQL Server table. Darren "DTS Dummy" <DTSDummy (AT) discussions (DOT) microsoft.com> wrote in message news:B895D597-3ED6-4CB8-AA04-3A198D310655 (AT) microsoft (DOT) com... How can I wirte to task log file the object DTSPackageLog is not woking it just complains Object Required. Can someone please tell me how can I get reference to taht object I have searched the complete msdn and there is no documentation on this. thanks |
#5
| |||
| |||
|
|
Unfortunately the DTSPackageLog object is only available inside the ActiveX Script Task. It is not available in transformation or workflow scripts. One option for logging inside a transformation script is to use a lookup to write to a SQL Server table. |
|
How can I access the log file from the transformation. I am discarding a record and I need to write the reson in the log file. If I can actually get |
|
"Darren Green" wrote: In an ActiveX Script Task you can use the DTSPackageLog object- DTSPackageLog.WriteStringToLog "My String" DTSPackageLog.WriteTaskRecord 1, "Desc" See the PackageLog object in Books Online for documentation of this object. Unfortunately the DTSPackageLog object is only available inside the ActiveX Script Task. It is not available in transformation or workflow scripts. One option for logging inside a transformation script is to use a lookup to write to a SQL Server table. Darren "DTS Dummy" <DTSDummy (AT) discussions (DOT) microsoft.com> wrote in message news:B895D597-3ED6-4CB8-AA04-3A198D310655 (AT) microsoft (DOT) com... How can I wirte to task log file the object DTSPackageLog is not woking it just complains Object Required. Can someone please tell me how can I get reference to taht object I have searched the complete msdn and there is no documentation on this. thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |