Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 How To Get Row Count In SSIS

Author  Topic 

SM
Starting Member

3 Posts

Posted - 2008-04-11 : 08:17:13
I am fetching data from xls file. Based on the number of rows fetched from the file I need to perform certain operation on each row of the data.
Please suggest how to get the row count for the data fetched from the file.

SM

igorblackbelt
Constraint Violating Yak Guru

407 Posts

Posted - 2008-04-11 : 08:50:23
Use Row Count component.
http://blogs.conchango.com/jamiethomson/archive/2005/05/29/SSIS_3A00_-Using-the-Rowcount-component.aspx

"The only requirement is that you have a variable in which to store the rowcount."
Go to Top of Page

SM
Starting Member

3 Posts

Posted - 2008-04-11 : 09:46:35
Through this I will be able to use the variable in OnPostExecute in script. I want to use it in Input0_ProcessInputRow where I am manipulating certain data based on this.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-04-11 : 12:31:33
Try declaring a new variable and getting the count onto this variable using OLEDB command task by taking count(*) from destination table to where rows are put from file.
Go to Top of Page
   

- Advertisement -