简体   繁体   中英

Is there a WHERE Clause feature in SSIS for a Flat File Source?

I don't know too much about SSIS and I've googled as much as I could on this. I'd really appreciate any help I could get.

I'm building an SSIS package and I only want to insert a specific set of data from a Flat File Source. Is there a way to use a WHERE clause to only pull specific data in?

For example, how can I make this query into a Data Flow Task?

INSERT INTO #TempTable (Column1, Column2)
SELECT Column1, Column2
FROM TEXTFILESOURCE
WHERE Column1 <> 'ABC'

Can this be achieved through Data Flow Task?

AFAIK平面文件源任务中没有任何东西可以做到这一点,但是一旦完成设置并流入数据,就可以使用条件拆分来过滤行,并使用与查询中的Where条件相同的逻辑。

使用过滤条件作为表达式的有条件拆分,或者使用C#的脚本任务,但是如果平面文件数据足够一致,则可以只使用有条件拆分,这将是一个过大的杀伤力。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM