Re: dts Logging
- From: "Bill Swartz" <wsaharem@xxxxxxxxx>
- Date: Wed, 13 Jul 2005 12:37:03 -0700
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@xxxxxxxxxxxxxxxxxx> wrote in message
news:uj8KV6yhFHA.2644@xxxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxx> wrote in message
> news:uB9A91yhFHA.4048@xxxxxxxxxxxxxxxxxxxxxxx
>> 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
>>
>
>
.
- Follow-Ups:
- Re: dts Logging
- From: Allan Mitchell
- Re: dts Logging
- References:
- dts Logging
- From: Bill Swartz
- Re: dts Logging
- From: Allan Mitchell
- dts Logging
- Prev by Date: Re: How to Import Data from Excel /CSV file to SQl Datbase Table using DTS in VB.Net
- Next by Date: Re: dts Logging
- Previous by thread: Re: dts Logging
- Next by thread: Re: dts Logging
- Index(es):
Relevant Pages
|