简体   繁体   English

使用SSIS导入时如何验证Excel数据?

[英]How to validate excel data when I import using SSIS?

I have one Excel file, in that file have 3 column. 我有一个Excel文件,在该文件中有3列。

Eg; 例如;

ModelNo Cost Quantity
 1       2.00  4
 2       3     0
 3       4     Null
 4       3     1
 5       7     null

Now I want to import these data into a SQL table. 现在,我想将这些数据导入到SQL表中。

When quantity is null not insert into table we send all record as mail. 当数量为空时,不插入表中,我们将所有记录作为邮件发送。

The quantity is not null I want to insert record into SQL Server table. 数量不为空我想在SQL Server表中插入记录。

I would use DFT Conditional Split in data flow task, as follows...then in the control flow email the NULL rcords that are stored in the "null value" table. 我将在数据流任务中使用DFT条件拆分,如下所示...然后在控制流中通过电子邮件发送存储在“空值”表中的NULL rcord。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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