I have a stored procedure, and inside I have a paging request that returns me a set of results depending on which page I am on.
I have
DECLARE @Products TABLE()... then INSERT INTO @Products SELECT ROW_NUMBER()...
Everything works fine, but when I have a product with one or two quotes in it, it does not appear in the results. SET QUOTED_IDENTIFIER is turned off. When I remove quotes, it works, but when I add them again, it does not appear.
What is my solution here?
source share