I have to execute a stored procedure which expects a single quote ('
) in parameter. I'm using this, but this isn't working:
exec sp_promo_db_list_generic_search_by_sales_order
'1','1', 'logo_name','Hamley's', 'N','N''
I am getting the error:
Incorrect syntax near 's'.
I am expecting that the stored procedures accepts '
character in the parameter. I've tried using the escape character('Hamley/'s'
) still it isn't working.