Solved

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

Posted on 2011-09-26
2
237 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem with SqlConnection 4 160
Sql user function 7 32
SQL server is using more virtual memory. 5 68
Sql Query 4 16
After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

15 Experts available now in Live!

Get 1:1 Help Now