Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

get record from special charcter after removing

$
0
0

I have data inserted from XML into my table with char() values.

I need to get eliminated in my query for filtering data

declare @t table
(s nvarchar(max) )
insert @t
values('(Location is Asia and Location is Africa) and 

(Manager Name Kumar and Manager Name Kannan)'), 
('(Manager Name Selvam and Manager Name Raja)')
select REPLACE(REPLACE(s, CHAR(13), ''), CHAR(10), '')  
from @t where s= 'and (Manager'

NO RECORDS FOUND

Expected result

===================

(Location is Asia and Location is Africa) and (Manager Name Kumar and Manager Name Kannan)')


ShanmugaRaj



Viewing all articles
Browse latest Browse all 7129

Trending Articles



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