PowerDesigner11.0的SQL產生表,寫列描述出錯

來源:互聯網
上載者:User
提示異常資訊:
伺服器: 訊息 15135,層級 16,狀態 1,過程 sp_validatepropertyinputs,行 100
對象無效。不允許在 '.My_Score_Type.Mst_TypeId' 上使用擴充屬性,或對象不存在。

執行如下(針對執行該儲存資料)
execute sp_addextendedproperty
'MS_Description',            --系統類別型(描述)
'類別id',                          --寫入值
'user',                               --物件類型
'',                                     --對象所有者
'table',                              --物件類型
 'My_Score_Type',           --對象名
 'column',                          --屬性類型
'Mst_TypeId'                    --屬性名稱

出錯的就是對象所有者,如在PowerDesigner11.0設計表時指定所有者(dbo),那麼產生的SQL對象所有者就不是空,而是DBO.
正常的SQL:
execute sp_addextendedproperty 'MS_Description',
   '類別id',
   'user', 'dbo', 'table', 'My_Score_Type', 'column', 'Mst_TypeId'

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.