Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

hardcode time field to date in SSIS Expand / Collapse
Author
Message
Posted Monday, February 11, 2013 3:35 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Saturday, February 1, 2014 2:14 PM
Points: 100, Visits: 435
Hi All,

I have a datefield in ssis in this format - '2012-03-20 08:30:00'.

I would like to remove the time field from datetime column and hardcode a timefield 02:00:00.

(DT_DBDate) '2012-03-20 08:30:00' ----> '2012-03-20 00:00:00'

I would like to hardcode and concatenate a time field "03:00:00" to the date field. The time field is static and will be d same for all date records.

Could any 1 let me know the ssis expression in dervived column for the same.

Any help on this?

Thanks
Post #1418283
Posted Monday, February 11, 2013 7:49 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:20 PM
Points: 13,252, Visits: 10,133
DT_DBDATE doesn't store the time. Try using DT_DBTIMESTAMP instead.



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1418440
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse