How to prevent loading same data again into SQL Server destination?

Hi guys,

I am new to SSIS and trying to learn through examples. I recently tried this simple example where I have an OLEDB source and am transferring data to flat file, CSV file and SQL Server destination. I ran this 7-8 times, but everytime I ran it, same data got loaded again and again into SQL Server. First time I ran the package, 115 rows of data got loaded into different destinations. CSV file and flat file  didn,t get loaded again after the first package execution.My question are as follows;
1)How do I prevent from loading same old data into SQL Server destination?
2)CSV file has col A n B. col A has string data which spills into colB as shown in the attached file. Some of col B numeric data got pushed to col C. I want all col A and B data in their respective columns.

Thanks
qs1.docx
techEverestAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TempDBACommented:
#1. You can keep a check in the insert statement while loading data into sql server. For e.g.
         
          insert into abc_tbl
          select * from abc1_tbl t1
          where not exists (select 1 from abc_tbl t2 where t1.primarykey = t2.primarykey)

#2. What is the datatype and datalength for the column. Check the delimiter whether that is bringing the data into another column.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
techEverestAuthor Commented:
Hi,
Sorry for the delay. I was away for holiday.Thanks for the quick feedback.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.