You can use the WSH Shell object to log an event from within an ActiveX
Script Task-
Set oWSH = CreateObject("WScript.Shell")
oWSH.LogEvent 0, "My Message"
Set oWSH = Nothing
WshShell Object
(http://msdn.microsoft.com/library/de...-us/script56/h
tml/wsobjwshshell.asp)
--
Darren Green
http://www.sqldts.com
"guru" <anonymous (AT) discussions (DOT) microsoft.com> wrote
Quote:
We can configure DTS package to log an event in the event log if the DTS
package fails or executes successfully. This works and i have tested this.
In DTS, is there a way to use activex script and access EventLog?
Thanks in advance |