Solved

SSIS data lookup

Posted on 2009-05-07
6
575 Views
Last Modified: 2013-11-10
I have a SSIS that is importing a CSV file into a DB.
The SSIS I have it also looking at the file to see if the there any changes.
All this works.

But the problem is I need it to delete the ROW in the DB and insert the the new row with the updated data.

The DATE is the import thing I would like the SSIS to update any row that has data change.

thanks,
Sam

lookup-screen.jpg
0
Comment
Question by:SamRunyon
  • 4
  • 2
6 Comments
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24323950
You are trying to delete and insert. why not only update the rows with new data?!

To update you should use OLEDB Command component!!

Helped?
regards,
Pedro
www.pedrocgd.blogspot.com
0
 

Author Comment

by:SamRunyon
ID: 24324182
Pedro, what would the SSIS layout look like?

Sam
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24324317
re-think your goal...
the goal is:
to look for data that is not in destination?
or to check the rows that need to be updated in destination?

0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:SamRunyon
ID: 24324351
Pedro, the way I read your message I want to do both.

I want it to import data that is not in the DB.
Then when the job runs again.
Import new data rows and then check to if the import has any data change.
Then update that data change.

I hope you can understand :)

Sam
0
 
LVL 22

Accepted Solution

by:
PedroCGD earned 500 total points
ID: 24324384
follow as you as doing but use only the red line output and replace SQL Server destination by a OLEDB command to update destination with new values... helped?
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24363387
Any improvements? Need more assistance?
If not set this question as answered.
Thanks,
Pedro
www.pedrocgd.blogspot.com
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now