关于PowerDesigner出现不允许有扩展属性,或对象不存在的解决办法

最近刚学会用PowerDesigner,生成脚本后再数据库只执行了一部分,然后出现了

消息 15135,级别 16,状态 1,过程 sp_addextendedproperty,第 37 行
对象无效。'Commons.Test.Test22' 不允许有扩展属性,或对象不存在。

关于PowerDesigner出现不允许有扩展属性,或对象不存在的解决办法

execute sp_addextendedproperty 'MS_Description', 
'mvc',
'user', 'Commons', 'table', 'Test', 'column', 'Test22'
go

里的user换成schema就行了。

需要设置一下,在DataBase >> Edit Current DBMS >> Script >> Object >> Column >> ColumnComment里的value值得user改为schema。

注意:如果你保存不了的话,请重新用管理员权限打开Powerdesigner,然后就可以保存了。

原文地址:https://www.cnblogs.com/tianlong/p/4988341.html