Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Decimal to Varchar Conversion

$
0
0


I have source Oracle  column COMPONENT decimal (28,7) . Am trying to load this column into Destination sql server , COMPONENT varchar(384)

 

Source data is  like 7153104.0000000 this, i want to load this data into destination with out the decimal values like this 7153104.

I tried using cast , to_char but still am getting the data into destination with decimal values only.How can i avoid them ?

 

cast(BOM.COMPONENT,'varchar(384)')

when i try this, am getting a warning as well

[Query:Query]
The data type conversion will be used to convert from type <varchar(64)> of mapping expression <to_char(BOM.COMPONENT,'varchar(384)')> to type <decimal(28,7)> of target column <COMPONENT>. (BODI-1110410)


Viewing all articles
Browse latest Browse all 4013

Trending Articles



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