SQL IsNumeric(), shouldn’t it return a bit

sqlsql servertsql

I'm just curious to know why SQL IsNumeric() returns int instead of bit? Seems like it should return a bit.

Best Answer

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.