I get this error in this simple SQL statement when trying to retrieve a string from a table.
Msg 245, Level 16, State 1, Procedure prViewRequirements, Line 18 Conversion
Try this one -
ALTER PROCEDURE [dbo].[prViewRequirements]
@WFRouteID INT
, @DocumentDescription VARCHAR(100) OUTPUT
AS BEGIN
SELECT @DocumentDescription = t.DocumentDescription
FROM dbo.tbFollowOnTracking t
WHERE t.WFRouteID = @WFRouteID
AND t.IsActive = 1
IF @DocumentDescription IS NULL
RETURN -1
RETURN 0
END