I’m trying to execute a simple SQL statement with Chinese values but it doesn’t work. I fund from MSD forums that I must use an nvarchar field in my MS SQL Server, but it doesn’t work either.
This is a code extract:
sqlCommand.CommandType = CommandType.Text
sqlCommand.CommandText = "insert into ExampleTable values('发现','发现','发现')"
sqlCommand.ExecuteNonQuery()
This is executed without problem, but in the DataBase I got this: “???????????????????”
Thanks again for your help
Preceed the values with the letter N to treat them as
nvarchar: