ssis derived transformation

hi all,
I have a sql query where there is NULL in some of the columns. I'm trying to create a delimited text file as destination.
Instead of NULL in Text file while data is passing thru dervied transformation , I want NULL to be replaced as Nothing.

In the text file the columns are having a delimiter as Pipe. Data for NULL should be replaced by nothing and the text columns in the file should look empty inbetween  pipe  like ||   . As u  can see inbetween there in no null . its nothing with no quotes.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Define 'nothing' in simple English, as a NULL will be passed to a text file as an empty string ''.
If for whatever reason that's not happening for you, then in each column where there may be a null, use this in T-SQL:

Instead of:    SELECT one, two, three
Use this:        SELECT ISNULL(one, '') as one, ISNULL(two, '') as two, ISNULL(three, '') as three

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
PortletPaulEE Topic AdvisorCommented:
Do you see the word "NULL" in your file like this:


but you want:


That is an "empty string" which is given by 2 single quotes, no other character in between. This is different to NULL.

If this is what you are seeking then ISNULL() as shown by Jim should do the job.

You can use COALESCE() as an alternative to ISNULL()

I would suggest you avoid describing this as "nothing" :)
Truly difficult to give you something for nothing.
learner0824Author Commented:
I dont want to do it at sql level but in SSIS . If so, should I use a dervied transformation and what is the expression to use
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 Applications

From novice to tech pro — start learning today.