Reputation: 41
hi i m trying to insert 's
in SQL sever i have search on solution to Replace 's
to ''s
then insert it is it valid solution or give me other solution
Upvotes: 1
Views: 17087
Reputation: 223217
if you are going to insert values with single quote '
, you have to escape it through single quote. So what you are doing is right.
You may see this article: SQL SERVER – How to Escape Single Quotes
Upvotes: 4