i have written a query as below. lets say i have data in @Test table as "New York and Texas have CCRxSM federraly approved". Word CCRxSM is a superscript word but it didnt loaded as superscript. SM should be on top like CCRx℠.
Declare @Test Table (Foo1 varchar(1023))
Insert @Test(Foo1) Values ('New York and Texas have CCRxSM federraly approved');
Select Foo1,
Case When Right(Foo1, 21) = 'SM'
Then Left(Foo1, Len(Foo1) - 2) + NChar(8480)
Else Foo1 End
From @Test
when i run my query i get error String or Binary data would be truncated. I am using SQL SERVER 2005.
JUST WANTED TO ADD, IF I JUST USE WORD CCRxSM THEN IT WORKS. so dont know why it doesnt work for complete record.
Thanks