1

有两种方式行采样和百分比采样,但都将所有数据加载到缓存中,然后从中获取一组记录。我有 6500 万条记录,无法将所有数据加载到缓存中。感谢建议。

4

2 回答 2

0

Unfortunately there's no property to determine how many rows to read on the flat file connection manager.

Another approach might be to use a script component and use the System.IO (or similar) namespace to manually import your CSV file. In that script you could limit the amount of rows that are read. Google "read CSV file .NET".

于 2012-05-08T08:21:51.563 回答
0

没有直接的方法可以做到这一点。您可以使用“要跳过的数据行”属性尝试解决方法

在此处输入图像描述

您可以创建一个随机数字变量并通过配置将其设置为该属性:

在此处输入图像描述

于 2012-05-08T11:00:04.547 回答