in an SSIS package I import data from a flat file into a db, do a sql query and export results into a excel destination. my issue is I have a convert,cast statement which is fine in sql it returns a value as HH:MM:SS
. the field is a string. my issue is when it goes into excel it is displaying the column data as MM:SS:0
i need it to stay as HH:MM:SS I have tried to use a data conversion and derived column. but I cannot seem to achieve this.
in my sql db I have 2 fields that are datatype 'nvarchar' I want to add them together so have the following
CONVERT(varchar(8), CAST(time as datetime) + CAST(length as datetime), 108) as 'endtime',
this returns values like 14:22:01
when it exports into excel it is appearing as 22:01:0
any advice would be much appreciated