Chinaunix首页 | 论坛 | 博客
  • 博客访问: 130294
  • 博文数量: 69
  • 博客积分: 595
  • 博客等级: 中士
  • 技术积分: 670
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-16 17:37
文章分类

全部博文(69)

文章存档

2017年(2)

2016年(9)

2015年(13)

2014年(30)

2012年(4)

2011年(2)

2010年(2)

2009年(5)

2008年(2)

我的朋友

分类: SQLServer

2016-12-28 16:49:52

In SSIS when extract data from sources, data flow error output has 3 columns - Flat File Source error Output Column, ErrorCode, ErrorColumn

ErrorCode is a numeric code, we can use script component to do the transformation into Error Description by using the  method of the  interface, available through the  property:
 public override void Input0_ProcessInputRow(Input0Buffer Row)  
    {    
      Row.ErrorDescription = this.ComponentMetaData.GetErrorDescription(Row.ErrorCode); 
        }

For the ErrorColumn, it is LineageID also in number, but for SSIS prior to 2016, there isn't

Then we can use merge join add the Column Name into the Error Output data flow.



阅读(1464) | 评论(0) | 转发(0) |
0

上一篇:Why OLAP Cubes?

下一篇:数据库设计技巧

给主人留下些什么吧!~~