dbTalk Databases Forums  

dts Logging

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


Discuss dts Logging in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bill Swartz
 
Posts: n/a

Default dts Logging - 07-12-2005 , 05:03 PM






Does anyone know how to write to or modify the log output of dts?

Currently the output looks something like this..
DTSRun: Loading...

DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnFinish: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_3
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_3
DTSRun OnStart: DTSStep_ValidateConnections
DTSRun OnError: DTSStep_ValidateConnections, Error = -2147220421 (8004043B)
Error string: The task reported failure on execution.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp


I intentionally failed this, but want to write to the log a provide some
background about what was happening and what the failure was.

Thanks
Bill



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: dts Logging - 07-12-2005 , 05:10 PM






You can write to the log but ONLY from the AX Script task using
WriteStringToLog() method. Everything else though is set in stone (at least
for the current release)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote

Quote:
Does anyone know how to write to or modify the log output of dts?

Currently the output looks something like this..
DTSRun: Loading...

DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnFinish: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_3
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_3
DTSRun OnStart: DTSStep_ValidateConnections
DTSRun OnError: DTSStep_ValidateConnections, Error = -2147220421
(8004043B)
Error string: The task reported failure on execution.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp


I intentionally failed this, but want to write to the log a provide some
background about what was happening and what the failure was.

Thanks
Bill




Reply With Quote
  #3  
Old   
Bill Swartz
 
Posts: n/a

Default Re: dts Logging - 07-12-2005 , 05:43 PM



Yeah, that writes to the eventlog, but not the output stream of a dtsrun
statement.. I should have been clear on which log....

Bill


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
You can write to the log but ONLY from the AX Script task using
WriteStringToLog() method. Everything else though is set in stone (at
least for the current release)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote in message
news:uB9A91yhFHA.4048 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Does anyone know how to write to or modify the log output of dts?

Currently the output looks something like this..
DTSRun: Loading...

DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnFinish: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_3
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_3
DTSRun OnStart: DTSStep_ValidateConnections
DTSRun OnError: DTSStep_ValidateConnections, Error = -2147220421
(8004043B)
Error string: The task reported failure on execution.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp


I intentionally failed this, but want to write to the log a provide some
background about what was happening and what the failure was.

Thanks
Bill






Reply With Quote
  #4  
Old   
Bill Swartz
 
Posts: n/a

Default Re: dts Logging - 07-13-2005 , 02:37 PM



Any thoughts on why the following isn't making it to the log file.. (log
file is set to 16mb with overwrite as needed)

errorFlag is True and package is reporting a failure to the GUI.

If (errorFlag) Then
DTSGlobalVariables("ErrorMessage").Value = errMsg
DTSPackageLog.WriteStringToLog errMsg
Main = DTSTaskExecResult_Failure
Else
Main = DTSTaskExecResult_Success
End If

Bill


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
You can write to the log but ONLY from the AX Script task using
WriteStringToLog() method. Everything else though is set in stone (at
least for the current release)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote in message
news:uB9A91yhFHA.4048 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Does anyone know how to write to or modify the log output of dts?

Currently the output looks something like this..
DTSRun: Loading...

DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnFinish: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_3
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_3
DTSRun OnStart: DTSStep_ValidateConnections
DTSRun OnError: DTSStep_ValidateConnections, Error = -2147220421
(8004043B)
Error string: The task reported failure on execution.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp


I intentionally failed this, but want to write to the log a provide some
background about what was happening and what the failure was.

Thanks
Bill






Reply With Quote
  #5  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: dts Logging - 07-13-2005 , 02:55 PM



In what log are you looking? The messages will appear in the package
execution log that you enable at the package level

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote

Quote:
Any thoughts on why the following isn't making it to the log file.. (log
file is set to 16mb with overwrite as needed)

errorFlag is True and package is reporting a failure to the GUI.

If (errorFlag) Then
DTSGlobalVariables("ErrorMessage").Value = errMsg
DTSPackageLog.WriteStringToLog errMsg
Main = DTSTaskExecResult_Failure
Else
Main = DTSTaskExecResult_Success
End If

Bill


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:uj8KV6yhFHA.2644 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
You can write to the log but ONLY from the AX Script task using
WriteStringToLog() method. Everything else though is set in stone (at
least for the current release)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote in message
news:uB9A91yhFHA.4048 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Does anyone know how to write to or modify the log output of dts?

Currently the output looks something like this..
DTSRun: Loading...

DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnFinish: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_3
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_3
DTSRun OnStart: DTSStep_ValidateConnections
DTSRun OnError: DTSStep_ValidateConnections, Error = -2147220421
(8004043B)
Error string: The task reported failure on execution.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp


I intentionally failed this, but want to write to the log a provide some
background about what was happening and what the failure was.

Thanks
Bill








Reply With Quote
  #6  
Old   
Bill Swartz
 
Posts: n/a

Default Re: dts Logging - 07-13-2005 , 03:26 PM



dooohhhh... I was looking at the system eventLog... Yep, it's there...

Thanks Allan..

Bill

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
In what log are you looking? The messages will appear in the package
execution log that you enable at the package level

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote in message
news:%23R2OBJ%23hFHA.1252 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Any thoughts on why the following isn't making it to the log file.. (log
file is set to 16mb with overwrite as needed)

errorFlag is True and package is reporting a failure to the GUI.

If (errorFlag) Then
DTSGlobalVariables("ErrorMessage").Value = errMsg
DTSPackageLog.WriteStringToLog errMsg
Main = DTSTaskExecResult_Failure
Else
Main = DTSTaskExecResult_Success
End If

Bill


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:uj8KV6yhFHA.2644 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
You can write to the log but ONLY from the AX Script task using
WriteStringToLog() method. Everything else though is set in stone (at
least for the current release)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"Bill Swartz" <wsaharem (AT) yahoo (DOT) com> wrote in message
news:uB9A91yhFHA.4048 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Does anyone know how to write to or modify the log output of dts?

Currently the output looks something like this..
DTSRun: Loading...

DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnFinish: DTSStep_DTSDynamicPropertiesTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2
DTSRun OnStart: DTSStep_DTSExecuteSQLTask_3
DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_3
DTSRun OnStart: DTSStep_ValidateConnections
DTSRun OnError: DTSStep_ValidateConnections, Error = -2147220421
(8004043B)
Error string: The task reported failure on execution.
Error source: Microsoft Data Transformation Services (DTS) Package
Help file: sqldts80.hlp


I intentionally failed this, but want to write to the log a provide
some background about what was happening and what the failure was.

Thanks
Bill










Reply With Quote
  #7  
Old   
Luis Gonzalez
 
Posts: n/a

Default Re: dts Logging - 06-19-2009 , 10:55 AM



please review in the next URL "http://www.sqldts.com/232.aspx" that solution.


url:http://www.ureader.com/msg/11461052.aspx

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.