从SQL 2008复制阿拉伯数据 [英] Copy arabic data from SQL 2008

查看:134
本文介绍了从SQL 2008复制阿拉伯数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SQL Server 2008中有现有数据,其中包含varchar列中的阿拉伯数据,我需要将其复制到SQL Server 2014.当我查询数据时,我看到像èíë¢ïëë¢é这样的文本是否有解决方案。我可以通过C#应用程序来完成吗。



我尝试过:



我在源代码上使用Arabic Collat​​ion尝试INSERT,使用代码页1256导出bcp实用程序。

I have existing data in SQL Server 2008 that has Arabic data in varchar column that I need to copy to SQL Server 2014. When I query the data I see text like èíë¢ïëë¢é Is there a solution. Can I do it through C# application.

What I have tried:

I have tried INSERT using Arabic Collation on the source, bcp utility to export using codepage 1256.

推荐答案

按照以下说明尝试解决您的问题: sql server - 如何从varchar数据类型中读取阿拉伯字符? - 堆栈溢出 [ ^ ]
Try resolve your issue by following the instruction from: sql server - How to read Arabic characters from varchar datatype? - Stack Overflow[^]


将目标列的数据类型更改为nvarchar(size / max),然后尝试插入数据。

我希望这应该有效。
Alter the datatype of your destination column to nvarchar(size/max) and then try to insert the data.
I hope this should work.


这篇关于从SQL 2008复制阿拉伯数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆