Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi friends.

when i run a query in sql server with this command some wonderfull error appear.that it is-->

my command is this "select Kala_Unit from Kala_Table where Kala_Name='kala_Name in persian language'. for some rows that is correct and for some of them it do not return any cell.

please help me. i do not know what to do. thanks alot
Posted
Comments
CoderPanda 23-Mar-14 3:22am    
What do you exactly mean by "some of them it do not return any cell"?
Can you paste sample data from the result please?
_Starbug_ 23-Mar-14 3:33am    
my table have 4 rows with 10 column. i want to select column 10 when when user enter column1. in entering some cells of column1 command execution return column10 and for some of them it did not. table information is in persian letter.
_Starbug_ 23-Mar-14 3:37am    
i have a table with 4 rows and 10 columns. i want to select column10 when user enter column1. for some rows command executes successfully(it return column 10) but for some of them it did not. and it did not return any thing. table information is persian.
CoderPanda 23-Mar-14 3:45am    
Sorry, it's not clear to me at all.
_Starbug_ 23-Mar-14 4:07am    
what is the problem in this queries. first query return value but second query does not.
first query:
select Kala_Vahed from Kala_Table where Kala_Name = 'سرپوش';
second query:
select Kala_Vahed from Kala_Table where Kala_Name = 'شیلنگ ظرفشویی';

what i must do? please help

1 solution

Not much information to post exact answer. Please, read all comments!

I quess, that Kala_Name is varchar data type. Change it to nvarchar data type[^].

Please refer this: Problem Search In SQL Collation Persian[^]
 
Share this answer
 
Comments
_Starbug_ 25-Mar-14 5:42am    
thank you.solved
Maciej Los 25-Mar-14 8:49am    
You're welcome ;)
Please, mark this answer as a solution (green button) and vote-up ;)

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