Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check data within flat file before importing to database 1

Status
Not open for further replies.

DCSage

Programmer
Mar 5, 2010
74
US
Hello.

I have a package that imports data from a flat file source to a sql server destination. I want to check to data to determine if the record already exists before importing. Is there a way to do this in my package? For example, there are 2 columns main: program and programming code and I want to check the programming code within the flat file to see if the record already exists. Can someone point me in the direction? Is there a tool to allow me to do this in SSIS? Or is it best to create a trigger? If I create a trigger, is it possible on something that has not even been inserted yet?

Thanks in advance.
 
I would suggest you create a table consisting of a large enough character field to take each record from the flat file, load the data into that table. You can now do whatever you want with sql statements.
 
Thank you. I actually considered that as my altrnative.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top