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
在ssis中获取所需格式_Ssis_Sql Server 2012_Ssis 2012 - Fatal编程技术网

在ssis中获取所需格式

在ssis中获取所需格式,ssis,sql-server-2012,ssis-2012,Ssis,Sql Server 2012,Ssis 2012,嗨,我对ssis有疑问 资料来源:环境管理计划 id |currency 1 |<?xml version="1.0" encoding="utf-16"?><double>0.7915</double> 2 |<?xml version="1.0" encoding="utf-16"?><double>-1</double> 我在派生列表达式中尝试了如下所示 SUBSTRING(currency,50,(FINDS

嗨,我对ssis有疑问

资料来源:环境管理计划

id |currency 
1  |<?xml version="1.0" encoding="utf-16"?><double>0.7915</double>
2  |<?xml version="1.0" encoding="utf-16"?><double>-1</double>
我在派生列表达式中尝试了如下所示

SUBSTRING(currency,50,(FINDSTRING(currency),"</",1)))
上述表达式未给出预期结果

请告诉我如何将ssis中的表达式写入 在ssis中解决此问题尝试以下方法:

SUBSTRING(currency,48,(FINDSTRING(currency,"</",1)) - 48)
子字符串的工作方式如下: 子字符串字符\表达式、位置、长度
48是与搜索值开头的距离

是否使用衍生列?
SUBSTRING(currency,48,(FINDSTRING(currency,"</",1)) - 48)
0.7915
-1