Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SSIS data lookup

Posted on 2009-05-07
6
Medium Priority
?
584 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
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
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…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

610 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