"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';
case patindex('%[^0-9]%', @Str)
when 0 then cast(@Str as Int)
- 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