kanan
kanan

Reputation: 41

SQl Server insert Special characters

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

Answers (1)

Habib
Habib

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

Related Questions