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
  • 35,986
  • 14
  • 111
  • 162
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
  • 4,783
  • 2
  • 21
  • 40
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
  • 10,975
  • 6
  • 48
  • 77