我创建了一个脚本模板来生成扩展属性,以基本上将数据字典包含在数据库中,但是,我找不到任何宏来从模型中读取表注释。这有什么技巧吗?
问问题
652 次
1 回答
0
这是 ERwin 中特有的 DBMS。
根据 dbms - SQL server 或 oracle 将有一个 FET 模板。
用于 sql 服务器。如果您编辑用于创建架构的 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" )
}
]
]
于 2014-04-24T04:12:51.510 回答