ARTICLE

How to use RowCount in SSIS

Posted by Muralidharan Deenathayalan Articles | SQL Server 2012 May 19, 2011
Here you will see How to use RowCount in SSIS.
Reader Level:
Download Files:
 

Step 1: Create variable to store the row count value.

RowSSIS1.gif

RowSSIS2.gif

Step 2: Go to DataFlowTask-> Drag & Drop the RowCount component and connect the input.

RowSSIS3.gif

Step 3: Select Female RowCount component -> Edit.

RowSSIS4.gif

Step 4: Do the step3 for the MaleRowCount variable also.

Step 5: Add a script task in the DataFlowDesigner pane and connect it.

RowSSIS5.gif

Step 6: Right Click ->Script Task-> Click Edit-> Click -> ReadOnly Varibles option

RowSSIS6.gif

RowSSIS7.gif

Step 7: Click Edit Script and use the below code in the Main function.

RowSSIS8.gif

Step 8: Execute the package and you can get the result.

RowSSIS9.gif

Login to add your contents and source code to this article
post comment
     
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.