Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Insert only time in datetime with default date

$
0
0

Hi,
I have a time in string format 231010 (HHMMSS). I want to insert it in column with datetime format. Date I am taking in a default derived column as "1900-01-01"

My SSIS expression looks like this

(DT_DBTIMESTAMP)(Default_Date + " " + SUBSTRING([Time],1,2) + ":" + SUBSTRING([Time],3,2) + ":" + SUBSTRING([Time],5,2))


NULL values are inserted successfully as
1900-01-01 00:00:00.000
but the expression where the default date concatenates with the time is not working.

The SSIS does not give any error but it stays yellow and does not proceed further.


A-Man


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>