I want to use quotation with escape character. How can I do?
I have received error in SQL Server
Unclosed quotation mark after the character strin
If you want to escape user input in a variable you can do like below within SQL
Set @userinput = replace(@userinput,'''','''''')
The @userinput will be now escaped with an extra single quote for every occurance of a quote