0

using the script:

select 'XX' + LTRIM(RTRIM(Account_No))  
from mis.ahr.Arnel_Apple_BID_VPP_List2014Oct
where Account_No LIKE '%32216996%'

I still get

(No column name)
XX 32216996

what could be the cause? TIA

7

2 Answers 2

0

try this to see what character it is

select unicode(LEFT(Account_No,1)) 
from mis.ahr.Arnel_Apple_BID_VPP_List2014Oct
where Account_No LIKE '%32216996%'

Then use nchar( n) for replace

0

You can try this, and let us know what 'Account_No' and 'hexBytes' columns show :

select Account_No,  
cast(Account_No as varbinary(500)) as hexBytes
from mis.ahr.Arnel_Apple_BID_VPP_List2014Oct
where Account_No LIKE '%32216996%'

This will show you what exactly is in Account_No.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.