views:

98

answers:

2

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
Ha.. I guess you're right.. but was this a mistake?
madcolor
+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