-3

I am trying to develop one desktop application which takes input in hindi from a textbox and saves it into a sql server database.

The textbox font is set to hindi. When I try inserting the hindi text into SQL Server it throws an error on cmd.ExecuteNonQuery(Invalid operation).

How can I insert hindi text into sql server?

Zain Rizvi
  • 23,586
  • 22
  • 91
  • 133
  • 1
    What is the data type of your column in which text will be stored? Also, what is the exception you are getting? – npinti Apr 27 '15 at 08:14
  • And what error are you getting? – npinti Apr 27 '15 at 08:21
  • @npinti I am not remember it but it throws error on cmd.ExecuteNonQuery – NitinTurankar Apr 27 '15 at 08:22
  • 4
    The error you are getting is vital in helping us help you solve the problem. Without it we cannot do much. I'd recommend you close the question and ask a new one when you have the stack trace at hand. What vendor and version of the Database you are using will also help. – npinti Apr 27 '15 at 08:24

1 Answers1

1

NVARCHAR datatype is the best possible way to handle multi linguistics.

Please find some of the links below for your reference.

https://dba.stackexchange.com/questions/25526/help-in-multi-language-medical-database

http://www.sqlservercentral.com/Forums/Topic205432-230-1.aspx

Community
  • 1
  • 1
Praveen_07
  • 170
  • 2
  • 12