Need Row_Number(partition by column0, order by column1) in ssis
Hi All, Can I generate Row_Number In SSIS Pakcage using any transformation.I can Go for script Task likePublic Class ScriptMain : Inherits UserComponent Private _RowNumber As Integer = 1 Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer) Row.RowNumber = _RowNumber _RowNumber += 1 End SubEnd ClassBut It generates the sequence of RowNumber...I want this sequence should be partitioned by some columnand order by some other column... How Can I Get That in SSIS..?Is there any script for that.. I dont want to write t-sql in my Package, Thats My boss Order..Thanks..
November 12th, 2008 1:33pm

Check out this solution, should be about righthttps://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3741062&SiteID=17
Free Windows Admin Tool Kit Click here and download it now
November 12th, 2008 1:50pm

Thank You Charles... It really helped me a lot...Thank You Very Much..
November 12th, 2008 2:13pm

Charles, One More thingCan I get LikeRow_Number(partition by column0,column1, order by column2)..? Do U have any script for this..please...I also need 'order by' clause...The Previous code is working fine but..I need to group by 2 columns...and order by 1 more column Help Me out Plz..
Free Windows Admin Tool Kit Click here and download it now
November 12th, 2008 2:29pm

You'll have to drop a Sort operation before the Script task and sort on Column2. Wouldn't the logic for partitioning by 2 columns will look like the existing code, just check for the other value?
November 12th, 2008 3:00pm

Thank YOu Very Much Charles..
Free Windows Admin Tool Kit Click here and download it now
November 12th, 2008 3:35pm

The link mentioned above is not working..........can i have the code please , how to use row number in script task..
December 16th, 2010 7:23pm

hi binny, I am thiru..i have same proble row number partition use ssis .But i don't get idea how to partition in ssis. i did it checked ur form in https://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3741062&SiteID=17.It could not be open it.so pls send me details about partition in ssis in my mail id. thanks, thiru mail:thirumurugan_888@hotmail.com
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2012 3:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics