;With cteNumbers as
(
Select ROW_NUMBER() Over(Order By c1.Unique_ID_Column) as N
From Your_Table_Name c1
)
Select Distinct Unique_ID_Column,Your_Column
From Your_Table_Name t
Join cteNumbers n ON n <= Len(CAST(Your_Column As NVarchar(MAX)))
Where UNICODE(Substring(Your_Column, n.N, 1)) > 255
OR UNICODE(Substring(Your_Column, n.N, 1)) <> ASCII(Substring(Your_Column, n.N, 1))
order by 1
No comments:
Post a Comment