Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 在SSIS包中强制执行数据类型_Excel_Ssis_Ssis Data Types - Fatal编程技术网

Excel 在SSIS包中强制执行数据类型

Excel 在SSIS包中强制执行数据类型,excel,ssis,ssis-data-types,Excel,Ssis,Ssis Data Types,我有一个从excel文件导入数据的SSIS包。 其中一列大部分是数字(如12345),但也有一些是字母(如123A5) 当我配置包时,我无法更改格式,并且它总是被识别为double(可能它只查看第一行) 如何强制执行自己的数据类型,以便它将列作为字符串读取 我还尝试在VisualStudio中修改包,并在数据转换步骤中添加列,但它仍然不起作用 是,因为您怀疑Excel驱动程序正在检查前几行以确定数据类型。可以使用MaxScanRows属性覆盖默认的8行: 或者,先将Excel文件另存为.cs

我有一个从excel文件导入数据的SSIS包。 其中一列大部分是数字(如12345),但也有一些是字母(如123A5)

当我配置包时,我无法更改格式,并且它总是被识别为double(可能它只查看第一行)

如何强制执行自己的数据类型,以便它将列作为字符串读取


我还尝试在VisualStudio中修改包,并在数据转换步骤中添加列,但它仍然不起作用

是,因为您怀疑Excel驱动程序正在检查前几行以确定数据类型。可以使用MaxScanRows属性覆盖默认的8行:

或者,先将Excel文件另存为.csv。为文本文件指定数据类型要容易得多