zoukankan      html  css  js  c++  java
  • SSIS OLEDB COMMAND RULES

    The oledb commad transformation prepare the wrong data type for the parameter.

    With my test, I have known something about the rule. You write query like

    Charindex(fileld_name,?)>0 the it will employee a inteter for you because the >0.

    If you use cast(charindex(field_name,?)>0 as varchar(255))='0' it will use a DT_STR

    With a length of 1. Just for your '0'.

    At first I want to change the data type by myself, but it will change back automatically.

    After I check this in MSDN, I know that you can not change the Param_x 's name and data type.

    You can treat it a bug, but It is hard to check the right data type, so you should take care

    For its this character.

    I do this in BIDS 2008, Mabe it is ok for 2012 or 2014 CTP.

     

    [OLEDB_UPDATE SRVR_DN [20]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.

    An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80040E21 Description:

    "Invalid character value for cast specification.".

       

       

       

    Looking for a job working at Home about MSBI
  • 相关阅读:
    Python核心编程——正则表达式
    Python 随笔之Redis
    我的第一个Python随笔
    python练习题-day20
    python练习题-day19
    python练习题-day18
    python练习题-day16
    python练习题-day15
    python练习题-day14
    python练习题-day13
  • 原文地址:https://www.cnblogs.com/huaxiaoyao/p/3357896.html
Copyright © 2011-2022 走看看