Question : DT_WSTR dropping value before decimal point in SSIS

I'm trying to convert a value less than 1 e.g. 0.34 in to a string variable using DT_WSTR in a derived column transformation and it gets converted to ".34" rather than "0.34". How do I fix this please?

Answer : DT_WSTR dropping value before decimal point in SSIS

Try converting it in your SQL Statement using Convert(Varchar(Length),ColumnName)..If your using any other Source..
 Try this ((ColumnName)< 1) ? "0"+ (DT_wstr,Length)(ColumnName) : (DT_wstr,Length)(ColumnName)


 
Random Solutions  
 
programming4us programming4us