Answered
Dynamic sql execution with quote marks
I have an app that lets users submit an arbitrary sql
statement (keywords like DELETE and INSERT are prohibited, in case
you are wondering). I send the string to theSQL Server stored
procedure below. The problem is that I get an error when the sql
statement contains quote marks like this:
select top 10 companyName
from customers
where country = 'USA'
Any solutions? Thanks.
Pete
select top 10 companyName
from customers
where country = 'USA'
Any solutions? Thanks.
Pete