I have a question regarding inserting strings to SQL Server 2008 R2. When I try to insert strings with some national letters, I receive "?" instead.
I know that adding N
at the beginning of a string literal will fix this problem, but I'm using JDBC prepared statements, like this:
INSERT INTO MyTable(col1, col2) VALUES (?,?);
My question is: How I can add this "N" letter? Should I do something like this?
INSERT INTO MyTable(col1, col2) VALUES (N?,N?);
To be honest I'm not convinced because this is not working at all.