3

I am using SQL Server 2008 R2. I want the retrieve the row from table in which data is other than than English.

But when I type the command it returns me nothing.

SELECT * 
FROM PARTY 
WHERE NAME LIKE 'رانا عطا ربانی' 
ORDER BY SRNO

Any suggestions, how to retrieve record like that?

0

1 Answer 1

6

Have you tried declaring the string literal as unicode?

SELECT * FROM PARTY 
WHERE NAME LIKE N'رانا عطا ربانی' 
ORDER BY SRNO

[This will show you all string-related columns in your database, and their collation: Collation conflict SQL Server 2008 ]

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Mitch.It gives me the the related record. Is there any solution to retrieve record if i type the first word and it gives me the related records like if i type 'رانا' it will gives all records related to it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.