Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How should i check the positive value in sql server 2005 except the following? declare @f varchar(2000) set @f = '788' print charindex( '-' , @f )
It would be nice if we could actually understand what you are trying to accomplish.
Check if it's larger than 0 :)
DECLARE @f INT SET @f = 788
IF @f > 0 BEGIN PRINT 'It is positively positive!' END ELSE BEGIN PRINT 'That''s A negative there, Toto' END
I are troll :)