Solved

SSIS data lookup

Posted on 2009-05-07
6
573 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
Comment Utility
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
Comment Utility
Pedro, what would the SSIS layout look like?

Sam
0
 
LVL 22

Expert Comment

by:PedroCGD
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:SamRunyon
Comment Utility
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
Comment Utility
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
Comment Utility
Any improvements? Need more assistance?
If not set this question as answered.
Thanks,
Pedro
www.pedrocgd.blogspot.com
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

744 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

12 Experts available now in Live!

Get 1:1 Help Now