How to save Spanish and Arabic characters in SQL Server 2008 R2 from a C# Windows application?
Asked
Active
Viewed 183 times
-1
-
What have you tried so far? What is your code? – BeanFrog Mar 20 '17 at 14:58
-
If you have chosen a database access technology such as ADO.NET, LINQ-to-SQL, or Entity Framework, please indicate that. Then, the answers can be more specific. – Tom Blodget Mar 20 '17 at 16:51
2 Answers
0
In sql server, use the nvarchar()
data type instead of varchar()
to support unicode.
In your application, specify the parameter as SqlDbType.NVarChar
as shown here: How to create NVarchar(max) Sqlparameter in C#?