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
Private sub ProcessFolder(folder)
On Error Resume Next
Dim Tab 'running table
for each Tab in folder.tables
if not tab.isShortcut then
Dim col ' running column
for each col in tab.columns
if col.comment="" then
else
col.name= col.comment
end if
next
end if
next
' go into the sub-packages
Dim f ' running folder
For Each f In folder.Packages
if not f.IsShortcut then
ProcessFolder f
end if
Next
end sub
分享到:
相关推荐
在powerdesigner中无法把中英文的字段名同时显示出来,只有通过把中文字段的含义拷贝到stereotype中才行。通过这个脚本文件将自动的把你的数据库中的所有字段的Name拷贝到stereotype中,非常方便。
PowerDesigner字段名生成备注说明脚本.vbs
PowerDesigner16.5逆向工程显示字段备注,生成的更贴合。使用的是命令运行的方式,本人亲试,非常方便。
powerDesigner 英文字段名修改为中文 这样比对不同表的时候对应字段
powerdesigner的大小写转换脚本,直接在powerdesigner里面找到执行脚本的地方,粘贴进去执行一下就可以了。 powerdesigner的大小写转换脚本 powerdesigner的大小写转换脚本
在用powerdesigner进行数据建模的时候,经常会遇到修改字段名,修改字段类型,在指定字段后面新加字段等操作,这个时候你可能就需要用脚本实现了,这个资料就是实现这些功能的,在powerdesigner15里测试可用
使用PowerDesigner通过excel模板文件与vb可执行代码,生成创建数据库sql建表语句脚本,资源包含.vb 和 excel模板文件。
PowerDesigner字段与Oracle字段对应
通常数据表字段使用英文,备注comment完成字段的说明。使用该脚本能够在PowerDesigner批量生成SQL脚本时将name生成数据库中字段的comment
powerdesigner逆向工程导入mysql脚本生成PDM带全注释
当PowerDesigner连接好数据库,并生成模型后,在PowerDesigner用Ctrl+Shift+x快捷键打开,然后将脚本内容粘贴运行,就可以开始生成数据库中存在的注释了
步骤: 1、用PowerDesigner打开要导出的PDM文件 2、Tools->Execute Commands -> Edit/Run Script... 3、点击Open图标(打开文件夹)找到该脚本文件 4、点击Run按钮
PowerDesigner中依次选中:Tools---->Execute Commands---->Edit/Run Script;或者使用快捷键Ctrl+Shift+X打开运行窗口。然后执行导出脚本。
PowerDesigner将注释转成名称脚本
Powerdesigner字段备注导入到数据库
使用Powerdesigner生成sql脚本
如何让PowerDesigner 自动生成 SQL Server 2000的表和列注释的脚本 ======================================= 1、将本包中的模板文件(Microsoft SQL Server 2000(带...
PowerDesigner中使name列的值等于comment列的值的脚本,亲测可用
PowerDesigner中自动生成sqlserver字段备注
PowerDesigner生成SQL脚本步骤详解.pdf