Click here to Skip to main content
15,996,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
"sql conversion of one or more characters from xml to target collation impossible"

in my project there is a search box and when user type something it gives results as follows.
1>post title:-varchar
2>post content:- xml
3>Date:- date
it was working fine,
now i change data type of title
from varchar to xml it gives me above error
Posted

1 solution

This error occurs when you have unicode charactors in the XML and you are trying to convert it to a varchar value. If you have such conversions anywhere change varchar to nvarchar. See the link http://nerdwords.blogspot.in/2010/01/sql-server-error-conversion-of-xml.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900