How do I retrieve only the top x rows from a flatfile in SSIS
问题 I have a flatfile connection and I'm only interested in the first 10 rows of data. How can I just import the first 10 rows? Row sampling is random so I can't use that. Is there some way I can have some sort of derived column which is an automatic row number or something and then data-split to only keep rows with that id <= 10? Any help much appreciated! 回答1: I've used this component --> http://www.sqlis.com/post/Row-Number-Transformation.aspx The component creates a new variable with a row