I am using Sql Server 2008 R2 Enterprise. I am coding an application capable of inserting, updating, deleting and selecting records from a Sql tables. The application is making errors when it comes to the records that contain special characters such as ć, č š, đ and ž.
Here's what happens:
The command:
INSERT INTO Account (Name, Person)
VALUES ('Boris Borenović', 'True')
WHERE Id = '1'
inserts a new record but the Name field is Boris Borenovic
, so character ć
is changed to c
.
The command:
SELECT * FROM Account
WHERE Name = 'Boris Borenović'
returns the correct record, so again the character ć
is replaced by c
and the record is returned.
Questions:
- Is it possible to make Sql Server save the
ć
and other special characters mentioned earlier? - Is it still possible, if the previous question is resolved, to make Sql be able to return the
Boris Borenović
record even if the query asks forBoris Borenovic
?
So, when saving records I want Sql to save exactly what is given, but when retrieving the records, I want it to be able to ingnore the special characters. Thanks for all the help.