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

Jason C
  • 38,729
  • 14
  • 126
  • 182
dmbp5237
  • 3
  • 1

2 Answers2

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

Horaciux
  • 6,322
  • 2
  • 22
  • 41
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.

Moe Sisko
  • 11,665
  • 8
  • 50
  • 80