Solved

SSIS Expression Syntax

Posted on 2010-08-30
5
466 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
  • 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Need an intro to -- .Net SQL Authorization Manager 7 47
SQL JOIN 6 31
Creating Alerts in sql sever 2 13
Mssql SQL query 14 26
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

707 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

13 Experts available now in Live!

Get 1:1 Help Now