`
leongod
  • 浏览: 64997 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

PowerDesigner15 逆向工程不生成physical option及NAME/CODE转换

 
阅读更多

在使用PowerDesigner15 逆向工程转换PDM后,发现转换后的表都指定了 tablespace 、storage等参数设置,不太适合常规使用习惯,如何处理?

 

在选择表,逆向转换之前,取消勾选physical option,就可以忽略 tablespace 、storage等参数设置。希望对大家有用。

 

【NAME/CODE转换】

执行一下VB脚本即可:

Option Explicit
ValidationMode = True
InteractiveMode = im_Batch

Dim mdl 'the current model

'get the current active model
Set mdl = ActiveModel
If (mdl Is Nothing) Then
MsgBox "There is no current Model"
ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
MsgBox "The current model is not an Physical Data model."
Else
ProcessFolder mdl
End If

'This routine copy name into code for each table, each column and each view
'of the current folder
Private sub ProcessFolder(folder)

Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
if len(tab.comment) <> 0 then
tab.name = tab.comment
end if
On Error Resume Next
Dim col 'running column
for each col in tab.columns
if len(col.comment) <>0 then
col.name =col.comment
end if
On Error Resume Next
next
end if
next
end sub

0
1
分享到:
评论

相关推荐

    PowerDesigner中显示name,code,comment的解决方法

    PowerDesigner中显示name,code,comment的解决方法 ...本文档提供了一种在PowerDesigner中显示name、code、comment的解决方法,解决了PowerDesigner视图不支持同时显示name、code、comment的问题。

    PowerDesigner批量生成SQL脚本时将name生成数据库中字段的comment

    在本篇中,我们将探讨如何使用PowerDesigner批量生成SQL脚本来将name属性转换为数据库中字段的comment。 首先,我们需要了解PowerDesigner中的PDM(Physical Data Model),这是一个物理数据模型,它包含了数据库的...

    使用PowerDesigner对NAME和COMMENT互相转换.docx

    另一方面,当你使用PowerDesigner的`REVERSE ENGINEER`功能从数据库反向生成PDM时,可能会发现NAME和CODE实际上是相同的,即数据库中的CODE。如果希望将数据库中Table或Column的中文Comment作为NAME,你可以使用另一...

    PowerDesigner

    在IT行业中,PowerDesigner是一款强大的数据建模工具,它被广泛用于数据库设计、逆向工程、数据仓库建模以及业务流程建模等多个领域。在处理复杂的数据库模型时,用户经常需要查看并比较对象的name、code和comment等...

    powerDesigner_表备注生成

    ### PowerDesigner 表备注生成详解 #### 一、PowerDesigner简介 PowerDesigner是Sybase公司推出的一款优秀的数据库设计工具,广泛应用于数据建模、数据库设计、仓库建模以及元数据管理等多个方面。它支持多种数据库...

    PowerDesigner常见问题.doc

    在使用 PowerDesigner 生成数据库脚本时,有时用户希望在生成的 SQL 脚本中不包含 `DROP` 语句,这可以通过以下步骤实现: 1. **进入** `Database -&gt; Generate Database`; 2. **选择** 弹出窗口中的 `Options` ...

    powerDesigner与Oracle相互倒数据技巧

    本文将详细介绍如何利用PowerDesigner实现与Oracle数据库之间的数据同步,具体包括如何批量根据对象的名称生成注释(comment),以及如何通过逆向工程将数据库中的注释赋值给物理数据模型(PDM)中的名称(name)。...

Global site tag (gtag.js) - Google Analytics