I have Input parameter
@SMSSessionTimeout AS INT
Suppose @SMSSessionTimeout = 300
While using inside begin...end
, I want to make it negative value.
Like @SMSSessionTimeout = -300
Thanks in advance.
Method 1 - Convert Negative Values to Positive Values You can use the "paste special" method to change numbers from negative to positive or positive to negative. Simply delete the -1 and you are done.
Multiply it by -1
SELECT @SMSSessionTimeout = @SMSSessionTimeout * -1;
Prefix the value with a minus sign.
SET @SMSSessionTimeout = -@SMSSessionTimeout
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With