是否有一个Erwin宏来提取表评论/定义?

时间:2010-10-29 19:39:56

标签: database datamodel

我创建了一个脚本模板来生成extendend属性,基本上将数据字典包含在数据库中,但是,我找不到任何宏来从模型中读出表注释。这有什么黑客攻击吗?

1 个答案:

答案 0 :(得分:0)

在ERwin中是特定于DBMS的。

取决于dbms - SQL server或oracle将具有FET模板 对于sql server。 如果编辑sql server模板以创建模式。在sql server中是什么生成注释或udp扩展属性。这是显示的内容。

/* Generate comments and UDP's as Extended Properties. */
[
    /* Set the variables required by the "Clause: Specify Extended Properties". */
    Set( "var_RemoveVariables", "true" ) 
    Set( "var_Operation", "sp_addextendedproperty" ) 
    Set( "var_Comment", "Definition" )
    Set( "var_Level0Type", "SCHEMA" ) 
    Set( "var_Level0Name", Property( "Name" ) )

    /* Generate Schema comments and UDPs */
    Execute( "Clause: Specify Extended Properties" )
]

[ 
    FE::Bucket( "150" ) 
    ForEachOwnee( "Permission" )
    {
        Execute( "Create Permission" )
    }
]