Solved

Ingnoring records when importing from a flat file using a SSIS package

Posted on 2011-09-26
2
240 Views
Last Modified: 2012-05-12
HI There

I am importing from a flat file into a database table using an SSIS package.
I would like to edit the package to exclude any records where the Column values from the flat file is a certain string value.

Ie I would like to import all the records where the column value is not equal to a specific string.

Any help on how to do this would be appreciated.

Thanks
Stanton
0
Comment
Question by:Stanton_Roux
  • 2
2 Comments
 
LVL 17

Expert Comment

by:OriNetworks
ID: 36598880
I believe you would like a Data Flow Task to grab the import file and then inside of that data flow, you want to add a Derived Column transformation. In there you can use an expression for the column you want to filter out. I'm not 100% on this one but im fairly confident.
0
 
LVL 17

Accepted Solution

by:
OriNetworks earned 500 total points
ID: 36598892
i'm sorry, i believe conditional split would accomplish this instead of the derived column.
0

Featured Post

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.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

791 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