patdev
February 26, 2021, 8:47pm
1
Hi,
Need to write the following code for data migration but need help please!!
hgt_ft=CAST((left(hgt, 1) *12.00) as decimal(7,3))
and
hgt_in=(case ISNUMERIC (REPLACE( right(hgt, len(hgt)-2), '"', ''))
when 1 then CONVERT(decimal(7,3),REPLACE( right(hgt, len(hgt)-2), '"', ''))
else 0
end)
how to??
Thanks
yosiasz
February 26, 2021, 8:50pm
2
Hello
Please provide some sample data?
patdev
February 26, 2021, 9:01pm
3
hello
not it was given to me to create and do not have access to test the data either.
thanks
yosiasz
February 26, 2021, 9:27pm
4
so is this some conditional in SSIS?
patdev
February 26, 2021, 10:08pm
5
Hi,
yes, i think the data is coming in different format and need to convert to correct one.
Thanks
Pat
yosiasz
February 27, 2021, 12:34am
6
Thats the point we dont know all the data types coming.so pretty hard to help you with just code you have posted
please see if this helps ...
When selecting data from a database using T-SQL, one can use CASE statements to derive new columns based on data in the database. However, when reading data from files in SQL Server Integration Services (SSIS) there isn't a CASE statement readily...