dbTalk Databases Forums  

Add own messages to DTS Package status messages?

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


Discuss Add own messages to DTS Package status messages? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ray Rankins
 
Posts: n/a

Default Add own messages to DTS Package status messages? - 01-30-2004 , 09:29 AM






Does anyone know if it is possible to add your own custom messages to the
DTS Package status messages from within an ActiveX script task in the DTS
package? I'd like to put out some information at the beginning of the DTS
package status message that you can see when you look at the job step
history in SQL Server Agent. Somewhere within the messages it currently
shows like the following:

Executed as user: PERFORMANCE1\SYSTEM. ...
DTSStep_DTSDynamicPropertiesTask_1 DTSRun OnFinish:
DTSStep_DTSDynamicPropertiesTask_1 DTSRun OnStart:
DTSStep_DTSActiveScriptTask_1 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 ...

I guess I would want them to go between the DTSRun OnStart:
DTSStep_DTSActiveScriptTask_1 and DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 status messages

Thanks,
Ray

-------------------------------------------------------
rrankins (AT) gothamconsulting (DOT) com



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

Default Re: Add own messages to DTS Package status messages? - 01-30-2004 , 02:36 PM






In message <#fOEPX05DHA.488 (AT) TK2MSFTNGP12 (DOT) phx.gbl>, Ray Rankins
<dbadmin (AT) gothamconsulting (DOT) com> writes
Quote:
Does anyone know if it is possible to add your own custom messages to the
DTS Package status messages from within an ActiveX script task in the DTS
package? I'd like to put out some information at the beginning of the DTS
package status message that you can see when you look at the job step
history in SQL Server Agent. Somewhere within the messages it currently
shows like the following:

Executed as user: PERFORMANCE1\SYSTEM. ...
DTSStep_DTSDynamicPropertiesTask_1 DTSRun OnFinish:
DTSStep_DTSDynamicPropertiesTask_1 DTSRun OnStart:
DTSStep_DTSActiveScriptTask_1 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 ...

I guess I would want them to go between the DTSRun OnStart:
DTSStep_DTSActiveScriptTask_1 and DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_1 status messages

Thanks,
Ray

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.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.