I need to update a table by using Stored procedure.
In that Stored Procedure i am using a IN Clause for some specific rows,Here i use a string which is having a value exacltly like this ='AC101','AC102','AC103'
eg:
string Recipt = "'AC101','AC102','AC103'";
Also My stored procedured query is
@PaymentDate nvarchar(MAX),
@ReciptNo nvarchar(50)
AS
BEGIN
SET NOCOUNT ON;
update Monthly_Payment set Payment_Date = @PaymentDate where Recipt_No in (@ReciptNo );
END
It's executing the query but not update the records which is mentioned in string
Note:
If i use normal query it's updated successfully.
ex:
update Monthly_Payment set Payment_Date = @PaymentDate where Recipt_No in (@ReciptNo );
Please update on this.