This is my stored procedure. When I pass "," in @BusinessName I am getting error: Syntax error near ',' in the full-text search condition ','. How do I resolve this error?
ALTER PROCEDURE [dbo].[SearchBusiness]
@uid bigint,
@BusinessName nvarchar(100),
@GroupId int=0
AS
BEGIN
IF ISNULL(@BusinessName,'') = '' SET @BusinessName = '""' ;
select
ru.FirstName+ ' '+ru.LastName AS DisplayName,
ru.BusinessName
from UserConnection uc join registereduser ru on
(uc.FromUserId=@uid and uc.ToUserId=ru.UserId)
where
@BusinessName = '""' OR
contains(ru.BusinessName, @BusinessName
)
END