我有一个名为Contacts的表,列Title为varchar(50)。现在在开发过程中,我想把字段Title的长度改为varchar(100)。目前,表Contact有超过25个依赖项(其他表,视图函数)。 当我在sql server 2008中运行以下sql语句时。我得到了错误。
ALTER TABLE [Contacts ] ALTER COLUMN [Title ] varchar(100)
Msg 5074, Level 16, State 1, Line 2
The object 'Contacts_title' is dependent on column 'title'.
还有更多。