The resulting data is:
"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;{\f1\fnil\fcharset0 Microsoft Sans Serif; \viewkind4\uc1d\f020 TEXT I WANT\f020"
Is there any easy way to hide or strip the formatting code so I just see "TEXT I WANT"?
what is the pattern here? looks like it is always prefixed with fs20 ?
please provide real world sample data otherwise it is guess work.
create table #supply_real_data(id int identity(1,1), charlatan varchar(250))
insert into #supply_real_data
select '{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;{\f1\fnil\fcharset0 Microsoft Sans Serif; \viewkind4\uc1d\f020 TEXT I WANT\f020}' union
select '{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}\viewkind4\uc1\pard\f0\fs20 TEXT I WANT.\fs26\par}'
select dbo.[RTF2Text](charlatan), LEN(charlatan)) as saint, charlatan From #supply_real_data
drop table #supply_real_data
since this looks like Rich Text File, you might want to create a CLR or go this route which might not necessarily a good approach but seems to work
SELECT
tblDataSign.Type
,tblDataPermit.XmlDataField.value('(//*[local-name()="Description"])[1]', 'nvarchar(max)') AS Description
FROM
tblDataSign
WHERE
tblDataSign.Type IN (@Type)