Quantcast
Channel: SSIS: Custom Logging Using Event Handlers
Viewing all articles
Browse latest Browse all 119

re: SSIS: Custom Logging Using Event Handlers

$
0
0
Jamie,

Thanks for the very well documented example! I started adding this to
my package, and ran into this:

My package has multiple parallel data flows. Using your code verbatim
won't work (fair enough:-) since it would create a race condition with
multiple packages writing to the same variables, all defined at the
global scope.

One way to address this would be to duplicate the variables at a lower
level (in my case at 5 foreach loops), but I suspect that would also
require duplicating 5 event handlers at the same scope level, while the
top-level foreach loops would need their own event handler to log their
execution (but without count variables.) Not very pretty.

A second way would be to instead put each data flow in its own package,
and include your code verbatim. Then add a master package to run the 5
sub packages in parallel. While this has a small drawback of making it
slightly harder to propagate code changes between my 5 data flows, it's
much cleaner and I'll be testing this.

Do you think my mini-analysis makes sense, or are there better ways to
handle event based logging with multiple data flows?

Thanks!
Gary

Viewing all articles
Browse latest Browse all 119

Trending Articles