store arabic in SQL database

前端 未结 9 574
栀梦
栀梦 2020-11-30 05:55

I tried to store Arabic string in SQL 2008 database but it converted to \" question mark \" why ? and what should I do ?

9条回答
  •  情歌与酒
    2020-11-30 06:07

    You can change the collation on the database level instead of changing for each column in the database:

    USE master;
    GO
    ALTER DATABASE TestDB
    COLLATE Arabic_CI_AI;
    GO
    

提交回复
热议问题