OK.. I have a large amount of data coming from
european sources. The data are text data but they should be
numbers. While going through these data I have found some
'typos' where there exist values such as CHAR(215).
of course trying to do any sort of convert or cast into a float fails here.
I would like to be able to pull out the records that have some ascii value withint the range of 191 and 255, for example. I have tried using patindex in this manner:
<<
patindex ('%[¿-ÿ]%',textfield)
>>
where the characters ¿ and ÿ were obtained by having query analyzer print out the char value for the ascii values I inserted
(first 191 ¿ , last 255 ÿ)
I always get 1 as an answer. No matter what my textfield is.
Charindex seems to work, but this is not desirable as I can only do one at atime.
What am I missing here?
Thanks a lot
european sources. The data are text data but they should be
numbers. While going through these data I have found some
'typos' where there exist values such as CHAR(215).
of course trying to do any sort of convert or cast into a float fails here.
I would like to be able to pull out the records that have some ascii value withint the range of 191 and 255, for example. I have tried using patindex in this manner:
<<
patindex ('%[¿-ÿ]%',textfield)
>>
where the characters ¿ and ÿ were obtained by having query analyzer print out the char value for the ascii values I inserted
(first 191 ¿ , last 255 ÿ)
I always get 1 as an answer. No matter what my textfield is.
Charindex seems to work, but this is not desirable as I can only do one at atime.
What am I missing here?
Thanks a lot