Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    4

    Unanswered: making null values to zero using derived column in SSIS

    hey i am new to this .................i have to make the null values in the column to zero using an expression in derived columns in ssis can some one plz help..................i tried doing it but there is a certain error..........

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    COALESCE is the command you want
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Oct 2008
    Posts
    4
    but if in the derived column i have to type an expression what it should be........like if i have to make it zero so the expression should be........(column name)IS NULL............

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Instead of having a table as your OLEDB source, change it to a T-SQL query.

    Then you can use the Coalesce funtion to do this.
    Code:
    SELECT Coalesce(that_pesky_field, 0) As [oh_lookie_here]
    ...
    George
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •