Viewing 4 posts - 1 through 4 (of 4 total)
Many Thanks!
ISNULL helped.
I used:
SET @p1 = ISNULL((SELECT (col1+ col2)
FROM #STOCK
WHERE DAYSTOEXPIRY = '0'),0)
and it worked.
Regards,
SM
August 12, 2015 at 8:05 pm
I am getting value of @p1 as :
SET @p1 =(SELECT (col1+ col2)
FROM #STOCK
WHERE DAYSTOEXPIRY = '0')
Now, if @p1 is zero, there is nothing displayed in the message which is trying...
August 12, 2015 at 7:45 pm
In short I want to know:
How to cast integer value zero to string value '0'
Many thanks!
August 12, 2015 at 7:23 pm
later I am trying to send @message in email @body
and on receiving the email there are no contents
As such, there are no errors appearing on sql.
If @p1 != 0,...
August 12, 2015 at 7:20 pm
Viewing 4 posts - 1 through 4 (of 4 total)