Enabling Arabic in SQL server /Arabic is not recognized in SQL server it displays as “???????”.i had seen may query like this in many discussion group and I had also faced the same problem .These are the few tips which I had followed to solve the problem
Solution 1:
Set the collation for the field to Arabic while creating the table
How do I change the collation for the existing table?
ALTER TABLE #studrelation ALTER COLUMN stu_rela_code
Nvarchar(100) COLLATE Arabic_CI_AS NOT NULL
Here Arabic_CI_AS
Arabic – Language which you need
CI/CS - Case Insensitive / Case Sensitive
AS/KS/WS - Accent sensitivity/ Kana Sensitivity/ Width sensitivity
Solution 2:
Arabic will be recognized only with data type Nvarchar, text if you insert in varchar data type it won’t work.
CREATE TABLE #studrelation
( stud_id int,
stu_rela_code Nvarchar(100)
)
Insert into #studrelation(stud_id,stu_rela_code)values(1,'رسوم كتب')
select * from studrelation where stu_rela_code like N'%رسوم كتب%'
No comments:
Post a Comment