[英]Importing data from excel to sql server table using SSIS
I have created a basic package using excel as source and sql server database as destination. 我创建了一个基本包,使用excel作为源,使用sql server数据库作为目标。 I have inserted 5 rows in excel and they are getting populated in sql server table without any error. 我在excel中插入了5行,并且它们已填充到sql server表中而没有任何错误。 when i add 2 new rows to the excel file, i want only those two newly added rows to be added in the database table , without previous rows being populated again. 当我向excel文件中添加2个新行时,我只希望将这两个新添加的行添加到数据库表中,而不会再次填充以前的行。
Can someone please help me with this? 有人可以帮我吗?
You can try left joining the excel source with the sql table and then filtering out any rows that already have a match: 您可以尝试将excel源与sql表连接起来,然后过滤掉任何已经匹配的行:
Notes: 笔记:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.