请教各位高手

来源: 黑衬衫 2017-07-19 19:25:45 [] [旧帖] [给我悄悄话] 本文已被阅读: 次 (318 bytes)

我有很多xml file要load到sql server table, 我现在可以用ssis一个一个file的做.

但是如果我想用foreach file container, 就不成功,请给大拿帮忙找找原因,

我几乎把google的都快试完了,也没找到结果..

谢谢大家!

所有跟帖: 

你会不会写 code?自己写 code 读 xml data, 然后存入数据库。狗一下会有好多 C# 读 xml 的样本。 -拉兄弟一把- 给 拉兄弟一把 发送悄悄话 (0 bytes) () 07/19/2017 postreply 22:23:29

谢谢兄弟,不会c#, 是在sql里run吗?看不太懂,帮我找一个,我试试.,你这名适合我现在想说的 -黑衬衫- 给 黑衬衫 发送悄悄话 (79 bytes) () 07/20/2017 postreply 05:34:16

这样的话,就不是三言两语讲得清的了。 -拉兄弟一把- 给 拉兄弟一把 发送悄悄话 (0 bytes) () 07/23/2017 postreply 14:20:56

youtube "Foreach Loop container import multiple file data SSIS" -慧惠- 给 慧惠 发送悄悄话 慧惠 的博客首页 (164 bytes) () 07/20/2017 postreply 06:02:16

谢谢你帮我看,都试过还不行 -黑衬衫- 给 黑衬衫 发送悄悄话 (41 bytes) () 07/20/2017 postreply 06:06:57

这怎么可能呢,再google "passing variables in a Foreach loop container" -慧惠- 给 慧惠 发送悄悄话 慧惠 的博客首页 (148 bytes) () 07/20/2017 postreply 06:15:33

谢谢你,能再详细点说吗? -黑衬衫- 给 黑衬衫 发送悄悄话 (0 bytes) () 07/20/2017 postreply 19:52:33

是不是xsd的问题呢?每个xml都要一个xsd吗? -黑衬衫- 给 黑衬衫 发送悄悄话 (0 bytes) () 07/20/2017 postreply 06:12:27

try this -过得轻松不容易- 给 过得轻松不容易 发送悄悄话 过得轻松不容易 的博客首页 (377 bytes) () 07/20/2017 postreply 12:16:10

谢谢,还是找不到解决方法,我们有两万个xml files, -黑衬衫- 给 黑衬衫 发送悄悄话 (64 bytes) () 07/20/2017 postreply 19:49:41

这么大量,如果不是一次性的 -过得轻松不容易- 给 过得轻松不容易 发送悄悄话 过得轻松不容易 的博客首页 (94 bytes) () 07/21/2017 postreply 05:56:08

实在受不了了,你老板要知道能被气死。这里有个壶卢: -像龟的兔子- 给 像龟的兔子 发送悄悄话 像龟的兔子 的博客首页 (858 bytes) () 07/21/2017 postreply 08:04:22

谢谢了,我就是照着这个做的,但是只能load一个file -黑衬衫- 给 黑衬衫 发送悄悄话 (152 bytes) () 07/21/2017 postreply 08:25:23

再请教:每个xml file都要提前准备好相应的xsd file吗? -黑衬衫- 给 黑衬衫 发送悄悄话 (161 bytes) () 07/21/2017 postreply 08:37:31

葫芦 -慧惠- 给 慧惠 发送悄悄话 慧惠 的博客首页 (0 bytes) () 07/21/2017 postreply 13:36:07

谢谢你花时间帮忙. -黑衬衫- 给 黑衬衫 发送悄悄话 (0 bytes) () 07/21/2017 postreply 16:03:52

谢谢你给我的建议,我这几天还真是学了不少. -黑衬衫- 给 黑衬衫 发送悄悄话 (153 bytes) () 07/21/2017 postreply 16:02:18

请问你最后是怎么解决的? 让我们学习学习吧! 谢谢 -fwtx66- 给 fwtx66 发送悄悄话 (0 bytes) () 07/22/2017 postreply 06:40:27

现在告诉你印象不深 -黑衬衫- 给 黑衬衫 发送悄悄话 (55 bytes) () 07/22/2017 postreply 08:32:49

请您先登陆,再发跟帖!