Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to save hindi font save in sql server 2008 database using c#
Posted

Duplicate of Save Hindi,Marthi Content in Sql Server database[^] and about 60 other questions (http://www.codeproject.com/search.aspx?q=hindi+sql&doctypeid=4%3b5[^]), but anyway:

1. Use nvarchar() as datatype in SQL
2. Write your insert statements prefixing your Hindi values with N, like this:
SQL
INSERT INTO TABLE (HindiColumn) VALUES (N'......')

3. Or, if you use SqlParameters in your query, make sure they are Nvarchar
 
Share this answer
 
 
Share this answer
 
Use NVARCHAR datatype.
And while inserting and fetching recorod use the following syntax:

Insert into emp Values(N'Ram');

Select * from emp where name = N'Ram';
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900