SQL,SSIS [英] SQL,SSIS

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

问题描述


我在文件夹路径中有多个excel文件(每周生成)。因此,我使用foreachloop通过每周调度包来获取多个文件。它运行正常。


现在,问题是第一周excel文件成功获取,同时运行第二周文件数据第一周重复。如何实现这一点而不重复。


我想保留历史数据吗?




解决方案

也许 您可以添加一些逻辑来将EXCEL数据加载到舞台表格然后使用  WHERE NOT EXISTS子句检查主表中的重复项目  


Hi,

I am having multiple excel files(generated weekly) in a folder path.So,I used foreachloop to fetch multiple files by scheduling weekly ruuning the package.It's working fine.

Now,the issue is 1st week excel file fetched successfully while running the 2nd week file data the 1st week gets duplicated.How to achieve this without duplication.

I want to maintain historic data?


解决方案

Perhaps  you can add some logic to load the EXCEL data to the stage table and then using  WHERE NOT EXISTS clause check for the duplicates in the main table  


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

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