I am using ADO.net and using SqlParameter
passing into a stored procedure a group of words that sometimes may have a +
between then. Up until the plus sign the search is working fine but once I add it I am getting no results. Do I need to change anything in the c# code I am run the sp fine with the plus sign.
c# code
SqlParameter[] parms = new SqlParameter[] {
new SqlParameter("@Title", SqlDbType.VarChar)
};
parms[0].Value =Title;
SQL SP
create PROCEDURE [usp_Select_Title] -
-- Add the parameters for the stored procedure here
@Title nvarchar(512) = null
WHERE (dcc.Title like '%'+ @Title +'%')