"d5" means "decimal 5", similar to scientific notation. It means "26 followed by 5 zeroes". That's a number.
It's one of the main weaknesses of IsNumeric.
Sometimes, you have to use something like this:
declare @STR varchar(100);
select @STR = '26d5';
select
case patindex('%[^0-9]%', @STR)
when 0 then cast(@Str as Int)
else null
end;
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon