dbTalk Databases Forums  

Writing to task log file

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Writing to task log file in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DTS Dummy
 
Posts: n/a

Default Writing to task log file - 06-11-2004 , 03:18 PM






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


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Writing to task log file - 06-14-2004 , 11:18 AM






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

Quote:
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.
Quote:
thanks




Reply With Quote
  #3  
Old   
Tony
 
Posts: n/a

Default RE: Writing to task log file - 06-14-2004 , 04:12 PM




--
T


"DTS Dummy" wrote:

Quote:
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


Reply With Quote
  #4  
Old   
DTS Dummy
 
Posts: n/a

Default Re: Writing to task log file - 06-15-2004 , 02:36 PM



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 the script sample how can I access while in the transfomation using VBS that would help me greatly.

"Darren Green" wrote:

Quote:
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





Reply With Quote
  #5  
Old   
Darren Green
 
Posts: n/a

Default Re: Writing to task log file - 06-17-2004 , 08:04 AM



You cannot use the log file from within a transformation.

Quote:
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

Quote:
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
the script sample how can I access while in the transfomation using VBS that
would help me greatly.
Quote:
"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







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.