Groups | Blog | Home
all groups > sql server dts > july 2007 >

sql server dts : How to build a custom log provider for SSIS



Jason
7/13/2007 11:32:04 AM
Hello, can anyone suggest info on how to create a custom log provider for
SSIS? In particular, I want to track the row count and duration for each
Execute SQL Task and Dataflow Task.

I've seen an example of logging using event handlers at
http://blogs.conchango.com/jamiethomson/archive/2005/06/11/SSIS_3A00_-Custom-Logging-Using-Event-Handlers.aspx,
but this example doesn't work well for multiple tasks running at the same
time, i.e. it will write to the same row count variable at one time. Also, I
don't see an example of how to track the row counts for the Execute SQL
Tasks...only data flow tasks.

Thanks for your help!

Jason
http://www.mcguiresclocks.com
weilu NO[at]SPAM online.microsoft.com
7/16/2007 4:08:32 AM
Hello Jason,

As Jamie said in the comments of this article, the approach he discribed
have some issue on handling the multi-parallel data.

From my opinion, you may need to specify more than one row count variable
in the package.

As for the Execute Tasks, You may need to specify the Result Set for it and
add it to the Variable.

Hope this helps.

Sincerely,

Wei Lu

Microsoft Online Community Support

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Jason
7/16/2007 9:52:05 AM
Thanks Wei!

I was able to track my Execute SQL task inserts, updates, deletes, using
"select @@rowcount as InsertCount" and then assigning InsertCount to
User::InsertCount variable in my resultset.

I also found an example of assigning result sets at
http://www.sqlis.com/58.aspx.

I appreciate your assistance.

Jason
http://www.mcguiresclocks.com




[quoted text, click to view]
weilu NO[at]SPAM online.microsoft.com
7/17/2007 3:13:15 AM
My pleasure, Jason.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button