Wrox Programmer Forums
|
BOOK: Microsoft SQL Server 2008 Integration Services Problem-Design-Solution
This is the forum to discuss the Wrox book Microsoft SQL Server 2008 Integration Services Problem-Design-Solution by Erik Veerman, Jessica M. Moss, Brian Knight, Jay Hackney ; ISBN: 978-0-470-52576-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Microsoft SQL Server 2008 Integration Services Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 25th, 2010, 11:22 AM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question Variable Change Logging

I've set up the framework exactly how you have described it in the book (Awesome by the way!), but when i look at the log for a single variable i have set to raise change event, it's logged multiple times within milliseconds of each other (no actual change to the value). I do have the variable i'm logging within a parent package.

Is that inherent in the logging procedure or the way i have the package within a parent?
 
Old July 5th, 2010, 09:23 PM
Authorized User
 
Join Date: Dec 2009
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default RE: Variable Change Logging

Hi brendenm,

Are the records showing up with any differences? The way events bubble up in the package, it may be logging at each level.

Something to try would be to include a script task before the Variable that filters the event if it is at anything other than the Package level. Please let us know if that works for you!

Best,
Jessica
 
Old July 9th, 2010, 11:28 AM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow RE: Variable Change Logging

I'm not sure if this will show right but below is a sample of what I'm seeing:

Within milliseconds a second error on the same task with the same error code and description is logged, but with different ErrorLogID and PackageLogID.


PackageErrorLogID PackageLogID ErrorCode LogDateTime
4 4 -1073548540 2010-06-22 13:04:02.860
5 3 -1073548540 2010-06-22 13:04:02.897

I guess it logs one for the parent package and one for the child since i have the error handling on both parent and child?
 
Old July 9th, 2010, 11:34 AM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow RE: Variable Change Logging

Sorry i meant to include the output from the variable log table: Here it is:

PackageVariableLogID
3
4
PackageLogID
4
3

VariableName
File_Name
File_Name

VariableValue
JPM_6162010.zip
JPM_6162010.zip

LogDateTime
2010-06-22 13:04:02.643
2010-06-22 13:04:02.660

Same deal. Two logs within milliseconds. No change in variable.
Do i need to have the parent package set to not log that change event? How do i modify to log only once per variable change?

Last edited by brendenm; July 9th, 2010 at 11:37 AM..
 
Old July 14th, 2010, 10:56 AM
Authorized User
 
Join Date: Dec 2009
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi brendenm,

Yes, the events are bubbling up to the parent package. Your best bet will be to set the DisableEventHandlers property on the Execute Package Task in your parent package to false.

Best of luck!
Jessica
 
Old July 14th, 2010, 11:06 AM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Jessica! Just to clarify, the disableEventHandlers on a Execute Package Task within a Parent package will not negate the handlers within the child package itself, only an event being logged from the Parent package related to that specific Task?

This same scenario works for tasks within containers, correct? If you disable the event handlers on the container but not the tasks you'll still get an entry in the error log but only once per task instead of twice, correct?

Thanks again!
Brenden

Last edited by brendenm; July 15th, 2010 at 10:27 AM..
 
Old August 6th, 2010, 03:25 PM
Authorized User
 
Join Date: Dec 2009
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Definitely - the child package executes in its own little world and cannot be modified by the parent package, unless you specifically force it through a configuration.

-Jessica





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change ASP variable in VBScript jimusa Classic ASP Basics 1 August 13th, 2008 07:08 PM
Variable substitution in logging.properties Gap_Tooth Apache Tomcat 0 July 21st, 2008 02:50 PM
Detect Variable change in C# tusharkale C# 1 July 8th, 2008 02:14 AM
Change php Variable with javascript manih Pro PHP 1 October 27th, 2006 09:43 AM
SSIS - Built-In Logging / Custom Logging ivobecker23 SQL Server 2005 0 April 21st, 2006 05:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.