将nvarchar(4000)转换为nvarchar(max) [英] Converting nvarchar(4000) to nvarchar(max)
本文介绍了将nvarchar(4000)转换为nvarchar(max)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们在SQL Server(2005& 2008)数据库中有一些表,其列定义为nvarchar(4000)。有时我们需要能够存储更多的数据,并考虑使用nvarchar(max)代替。现在开始提问。
We have a few tables in our SQL Server (2005 & 2008) database with columns defined as nvarchar(4000). We sometimes need to be able to store more data than that and consider to use nvarchar(max) instead. Now to the questions.
- 我们应该知道对性能有何影响?
- 使用更改是否安全表进行实际迁移还是有其他方法?
- 在进行转换之前,我们应该知道的其他信息吗?
关于
Johan
Regards Johan
推荐答案
我们在某些地方也必须这样做
We've had to do this as well in a few spots
- 自更改以来已有5周了,我们没有看到任何性能方面的影响
- '只要在转换过程中未写入表,就可以使用备用表。
- 请确保进行备份,以防万一,并取决于表中可能需要的数据量一段时间
这篇关于将nvarchar(4000)转换为nvarchar(max)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文