Problem in insert data in sql server
I am using simple insert command for insert data in sql server in which data field is nvarchar(max) but when i insert text with special charcter as ; or ' or " its give error please help me
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mamta MRank #268 · 9.4K reputationPosted Aug 2, 2010, 2:10 AM EDT
Deepak Bhatia142 reputationPosted Aug 2, 2010, 2:31 AM EDT
When you are inserting before inserting the value replace the single quote ' with '' double quote.
Sam HobbsRank #107 · 20.5K reputationPosted Aug 2, 2010, 9:47 AM EDT