I'm just curious to know why SQL IsNumeric() returns int instead of bit? Seems like it should return a bit.
+2
A:
Hm, yes, I agree with you, it would be more logical if it would return a bit. But in the end, it doesn't matter, does it?
Maximilian Mayerl
2009-10-06 17:56:51
Ha.. I guess you're right.. but was this a mistake?
madcolor
2009-10-06 17:57:39
+6
A:
The bit
data type was added comparatively recently in the evolution of Transact-SQL. You will find that a lot of system functions were at least designed, if not added, before bit
was added. I have noticed that quite a few system procedures added since then do take bit
parameters where appropriate.
Christian Hayter
2009-10-06 17:59:17