Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

SSIS Expression Syntax

Hi experts,

I am new to SSIS 2008 and I wanted to add a new derived column to my table.  What I really want is a way to write a SQL expression to do the same thing as this TSQL statement:

, ISNULL(DateTime1, Datetime2) AS Arrived

how do I do the same thing as above as an SQL expression and have it create a new Column for me called Arrived?
0
Aaron Goodwin
Asked:
Aaron Goodwin
  • 2
  • 2
1 Solution
 
Reza RadConsultant, TrainerCommented:
try this expression:

ISNULL(DateTime1) ? DateTime2 : DateTime1
0
 
Aaron GoodwinAuthor Commented:
Ok I'll give it a try
0
 
Aaron GoodwinAuthor Commented:
Well, I think it will work.  I have an ole db source, on success connected to a derived column.  The column exists in the Source (As I added it as a datetime column).  There are only around 200,000 rows from the source but It is reading 4X that.  Any ideas what I might have done wrong?  I can submit as a separate question if that would be better.

do I need to run the Derived column through a data conversion step first?
Data-Flow-ETL.docx
0
 
vdr1620Commented:
can u post the sql in the ole db source?
0
 
Reza RadConsultant, TrainerCommented:
actually problem is in your source query,
post your query exactly here,
and also post new question for this, because It differ from current question area
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now