在这种情况下,SSIS 倒在了后面。
在我的平面文件中,我们有这样的正常记录
"1","2","STATUSCHANGED","A","02-MAY-12 21:52:34","","Re","Initial review",""
有些像这样;(记录分布在几行)
"1","2","SALESNOTIFICATIONRESPOND","Ac","02-MAY-12 21:55:19","From: W, J
Sent: Wednesday, May 08, 2012 2:00 PM
To: XXXX, A; Acost
Subject: RE: Notification Id 1219 - Qu ID XXXXXX
I got this from earlier today. Our team is reviewing the request.
Thanks,
Hi,
This account belongs to D please approve/deny.
Thanks!
Claud","","","Reassign"
因此,查看 NOTEPAD + 中的文件真是太棒了,它告诉我,在分布在多行的那个字段中,我应该取出该字段中的所有 {CR}{LF}。
此文件的行分隔符是 LF,文本限定符是“.
所以我需要对 200 个文件的集合做两件事?
- 删除文件中的所有 {CR}{LF} ?
- 删除任何嵌入在实际字段中的“作为文本限定符?
任何人都知道如何在 Windows、dos 或 vba 中为如此大量的文件执行此操作,使其自动化?