I get the following error message when I attempt to run the query shown further below:Server: Msg 257, Level 16, State 1, Line 5Implicit conversion from data type money to varchar is not allowed. Use the CONVERT function to run this query.
DECLARE @mymoney1 MONEYDECLARE @mymoney2 MONEYSET @mymoney1 = 1.30SET @mymoney2 = NULLIF IsNumeric(@mymoney1) <> IsNumeric(@mymoney2)print 'different'elseprint 'same'
My question is why is it trying to do an implicit datatype conversion to VARCHAR? The docs for IsNumeric in BOL says that money is supposed to evaluate as a valid numeric datatype. I am corn-fused!!!Edited by - Glockenspiel on 07/05/2002 13:02:14