Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

convert int to string in xml extract

$
0
0

Hi

 

while extracting the data from xml file to sql tables, there is one problem coming up... as in xml column u_type is of int datatype but the actual data is like 1B,1H... and after extraction 1,2 is going inside the sql table..

 

i tried using the cast function as cast(u_type,'varchar(4)') but it is not working.. getting warning

 

Cannot convert data <1H> into type <INTEGER>. Context: Column <Column u_type>.

 

Any idea

 

regards


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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