+ signs don't show for positive numbers. In order to show a plus sign, you need to convert your number to a string representation. This little code snippet should show you how.
Code:
Declare @Number Integer
Set @Number = -10
Select Case When @Number > 0 then '+' Else '' End
+ Convert(VarChar(10), @Number)
Copy/Paste this in to Query Analyzer. Run it. Change the number to something positive, run it again.
-George
Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.