Free Programming

我的生活在一行又一行的代码中前行........

 

PowerDesign 增加注释脚本的功能

PowerDesign 增加注释脚本的功能

database --- > edit current database...

general -> script-> object-> table-> table comment
添加:
[execute ]sp_addextendedproperty N'MS_Description',
    N%.q:COMMENT%,
    N'user', N'dbo', N'table', N%.q:TABLE%

同上 column -> columncomment

添加

[execute ]sp_addextendedproperty N'MS_Description',
    N%.q:COMMENT%,
    N'user', N'dbo', N'table', N%.q:TABLE%, N'column', N%.q:COLUMN%

 

同时在生成的时候把注释的选项 打上勾

posted on 2007-09-09 10:30  sharewind  阅读(404)  评论(0)    收藏  举报

导航