April 14, 2010 at 2:35 pm
SELECT CHARINDEX('AAAAAAAA™BBBBBBBBBBBBBB',Char(153))
I can not seem to get the trademark to work in charindex
April 14, 2010 at 2:49 pm
JKSQL (4/14/2010)
SELECT CHARINDEX('AAAAAAAA™BBBBBBBBBBBBBB',Char(153))I can not seem to get the trademark to work in charindex
You're using CharIndex wrong... you reversed the parameters.
Try:
SELECT CHARINDEX(char(153),'AAAAAAAA™BBBBBBBBBBBBBB')
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 14, 2010 at 2:52 pm
wow thanks. I am asleep at the wheel!
April 14, 2010 at 6:32 pm
Happens to all of us at some point. I initially thought it might be because the TM symbol might need to be specified as unicode.... but it turned out to be so much easier!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply