INFORMATION_SCHEMA.COLUMNS not updated

送分小仙女□ 提交于 2019-12-13 06:41:32

问题


I notice this weird behavior where I change the column type from ntext to nvarchar(max) and in the INFORMATION_SCHEMA.COLUMNS the data_type remains ntext ...

Is there something i must execute for the metadata to be refreshed?

I'm on sql server 2005


回答1:


I don't get this behaviour on tables on SQL2005 (I just tested)

Is this for a view based on a table definition that has changed? If so

exec sp_refreshsqlmodule 'schema.ViewName'

should do it.



来源:https://stackoverflow.com/questions/3442862/information-schema-columns-not-updated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!