blogs.conchango.com

welcome to the conchango blogging site
Welcome to blogs.conchango.com Sign in | Join | Help
in Search

SSIS Junkie

Conchango are busy and need talented consultants in and around London. Interested? Email me or send me a message

SSIS: But it used to work in DTS (6) - Capture number of rows with RowsComplete

Here is the next in my series of posts explaining how common tasks in DTS can now be implemented in SSIS.


Capture number of rows with RowsComplete

Easy one this. In DTS it was possible to capture the number of rows processed using the RowsComplete property of a task. In SSIS it is possible to capture the number of rows flowing through a data-path using the Rowcount component.

Also, when SSIS has inserted all data into a destination it fires an OnInformation event reporting the number of rows.

 

 

Published 11 July 2006 08:37 by jamie.thomson

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Jamie Thomson - SSIS Jibber Jabber said:

I've said on numerous occasions, in slightly different ways, that making the move from DTS to SSIS...
July 11, 2006 08:43
 

SSIS Junkie said:

I've said on numerous occasions, in slightly different ways, that making the move from DTS to SSIS

December 21, 2006 19:34
 

Alok Singh said:

Hi ,

I am working on an ETL which have around 12-15 data flow tasks.Everything is working fine and I am able to fetch data properly.

Now I want to have an Audit table which captures all the transaction details during that package run.ie I want to have a table called Data_Load_Statistics in which I want to insert "tablename" "Date" "Starttime" "Endtime" "Total number of rows transfered" etc ..

I know SSIS stotes this information somewhere as we can see all this in "Execution Results" tab.

Can you tell me how to proceed on this.

Thanks in advance ..

April 30, 2008 11:02
 

jamie.thomson said:

Hi Alok,

You might want to take a read of my custom logging blog entry:

Custom Logging Using Event Handlers

(http://blogs.conchango.com/jamiethomson/archive/2005/06/11/SSIS_3A00_-Custom-Logging-Using-Event-Handlers.aspx)

If you still have questions after that then feel free to ask.

-Jamie

April 30, 2008 11:13
 

Alok Singh said:

Hey Jamie , Thanks alot .. its working for me ..

May 3, 2008 16:09
 

Alok Singh said:

Hi jamie,

I am using the following query to insert custom log.

"Insert into  ACEODBC_Log (Company,PackageName,EventType,TaskName,Description,LoadDate,PackageDuration,ContainerDuration,InsertCount,UpdateCount,DeleteCount,Host) values

('"+@[User::Company]+"',

'"+ @[System::PackageName]+"',

'OnPostexecute',

'"+ @[System::SourceName]+"',

'',

'"+ (DT_STR,15, 1252) (DT_DBDATE) GETDATE() +"',

'"+ (DT_STR, 6,1252) DATEDIFF( "ss", @[System::StartTime] , GETDATE())+"',

'"+ (DT_STR, 6,1252) DATEDIFF( "ss",@[System::ContainerStartTime],GETDATE())+"',

"+ (DT_STR, 4,1252) @[User::RowCount]+",

0,

0,

'"+ @[System::MachineName]+"')"

I am getting all the details except Container Duration ... I t always shows 0 value ... ne idea y ??

May 12, 2008 13:01
 

Alok Singh said:

I think I hav got where the problem is ...

Actually I have written this custom log code inside a Executesqltask on Postexecute event of my dataflow ..

when I do DATEDIFF( "ss",@[System::ContainerStartTime],GETDATE()) , Its takes containerstart time as @[System::ContainerStartTime] of ExecuteSQLtask and not the parent data flow and hence it is always equal to getdate() and hence I am getting 0 as my  ContainerDuration ...

Any solution to avoid this guys ...

Thanks in advance ...

May 12, 2008 17:24
 

jamie.thomson said:

Alok,

@System::ContainerStartTime tells you when the eventhandler started executing. There is no way of knowing when a container in the control flow started executing unless you record it somewhere within the OnPreExecute event.

-Jamie

May 12, 2008 18:00

Leave a Comment

(required) 
(optional)
(required) 
Submit

This Blog

Syndication

News

Powered by Community Server (Personal Edition), by Telligent Systems