A conversão falhou ao converter o valor varchar 'my return value' para o tipo de dados int
Eu recebo este erro nesta instrução SQL simples ao tentar recuperar uma string de uma tabela.
Msg 245, nível 16, estado 1, procedimento prViewRequirements, linha 18 conversão falhou ao converter o valor varchar 'Cardiac Assessment Questionnaire por Dr.' para o tipo de dados int.
/****** Object: StoredProcedure [dbo].[prViewRequirements] Script Date: 04/24/2013 15:44:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[prViewRequirements]
@WFRouteID int
AS
DECLARE
@DocumentDescription VARCHAR(100)
SELECT @DocumentDescription = DocumentDescription
FROM tbFollowOnTracking
WHERE WFRouteID = @WFRouteID
AND IsActive = 1
IF (@@ERROR <> 0)
GOTO ERRSP
RETURN @DocumentDescription
ERRSP:
RETURN -1
Alguem sabe por quê?