INFORMATION_SCHEMA.COLUMNS not updated

2019-08-23 20:05发布

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条回答
姐就是有狂的资本
2楼-- · 2019-08-23 20:52

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.

查看更多
登录 后发表回答