SSIS 处理 NULL 和空格 [英] SSIS handling NULL and blank spaces

查看:28
本文介绍了SSIS 处理 NULL 和空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我是 SSIS 的新手,我正在接收由 SSIS 创建的文本文件,我使用向导将其加载到 oracle 表中,但在文本文件中有包含字符串 NULL 的列,其他包含空字符串而不是零长度列一种使这些值成为表中实际空值的自动方法,或者我是否必须为每个这些情况创建派生列

hello i am new to SSIS and iam receiving text file created by SSIS iam using wizard to load it to oracle table but in the text file there is columns contain the String NULL and other contain blank string instead of zero length column is there an auto way to make these value to become actual null value in the table or do i have to create derived column for each one of theses cases

谢谢,

推荐答案

在 SQL Server Data Tools for Visual Studio 2015/SQL Server 2016 的 SSIS 项目中,处理空列的方法似乎是通过平面文件源组件的属性(不确定仅空格列是否符合条件):

Within an SSIS project in the SQL Server Data Tools for Visual Studio 2015/SQL Server 2016, the way to address the handling of empty columns seems to be via a property of the Flat File Source component (not certain whether space-only columns qualify):

  1. 右键单击平面文件源并选择显示高级编辑器....
  2. 选择组件属性标签.
  3. RetainNulls 属性设置为 True(默认为 False).
  1. Right-click the Flat File Source and choose Show Advanced Editor....
  2. Select the Component Properties tab.
  3. Set RetainNulls property to True (default is False).

这篇关于SSIS 处理 NULL 和空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆