I have an insert request to execute from C # in a SQL Server database.
The column I am inserting is of type nvarchar.
The data that I insert in this column is not English.
Is it enough for me to use AddWithValue to transfer non-English data to the server? like this example:
string dogName = "Χ’ΧΧ¨ΧΧͺ"; using (SqlConnection connection = new SqlConnection(connectionString)) { connection.Open(); using (SqlCommand command = new SqlCommand("INSERT INTO Dogs1(Name) VALUES @Name", connection)) { command.Parameters.AddWithValue("Name", dogName); command.ExecuteNonQuery(); } }
Or should I use the N prefix to declare it unicode? as they say here .
kroiz source share