Split up date in conditional split SSIS

  • Just now I have a date column with format of 2011-05-25 I would like to split this into three columns:

    Year Month Day

    2011 05 25

    Can this be done using SSIS ? or even in SQL OLE DB?

  • Check out the T-SQL Year(), Month() and Day() functions - you can do this at source.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • dario.quinn (3/21/2013)


    Just now I have a date column with format of 2011-05-25 I would like to split this into three columns:

    Year Month Day

    2011 05 25

    Can this be done using SSIS ? or even in SQL OLE DB?

    TSQL is the easiest option, but if you're feeling adventurous you can also do it in a derived column using similar functions.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply