Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

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


Group: General Forum Members
Last Login: Friday, August 1, 2014 8:41 AM
Points: 101, Visits: 437
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?

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



Group: General Forum Members
Last Login: Yesterday @ 6:23 AM
Points: 15,499, Visits: 13,162
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 SQLKover.

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

Add to briefcase

Permissions Expand / Collapse