Solved

SSIS Expression Syntax

Posted on 2010-08-30
5
473 Views
Last Modified: 2013-11-10
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
Comment
Question by:Aaron Goodwin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 30

Expert Comment

by:Reza Rad
ID: 33561704
try this expression:

ISNULL(DateTime1) ? DateTime2 : DateTime1
0
 

Author Comment

by:Aaron Goodwin
ID: 33561917
Ok I'll give it a try
0
 

Author Comment

by:Aaron Goodwin
ID: 33566102
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
 
LVL 16

Expert Comment

by:vdr1620
ID: 33567252
can u post the sql in the ole db source?
0
 
LVL 30

Accepted Solution

by:
Reza Rad earned 250 total points
ID: 33567986
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

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
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.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

751 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