0

我在 SQL Server 2008 R2 上有一个数据库。在表中,有一列应为 ntext 类型,但它被设计为文本列。所以数据被发送,保存为文本,然后保存为问号(无法识别)。

我已将类型更改为 ntext。有没有办法恢复这个保存的数据?本来想跟踪抓到的数据发送到存储过程中,手动维护,但是搜索了一下,没有结果。

有任何想法吗?

4

1 回答 1

1

No, the data is lost unless you have the original data. Once written to a non-unicode column, unicode data will be lost. This is demonstrated in my answer here: Determine varchar content in nvarchar columns

Also note that ntext is deprecated. You should use nvarchar(max)

ntext , text, and image data types will be removed in a future version of Microsoft SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use nvarchar(max), varchar(max), and varbinary(max) instead.

于 2013-05-27T11:23:33.403 回答