I have a stored procedure like this:
CREATE PROCEDURE Resume
@UserID nvarchar(100)
AS
BEGIN
SET NOCOUNT ON;
update Candidate set Approved = 'y' where UserId_I in (@UserID)
END
GO
In this the @UserID
is in string format. I send the value of parameter @UserID
is 1,2,3
from code as string.
I got error as
Conversion failed when converting the nvarchar value '1,2,3' to data type int.
Please solve this