PowerDesigner - 通过 VBScript 将 TriggerTemplate 分配给触发器? [英] PowerDesigner - Assign a TriggerTemplate to a trigger through VBScript?

查看:36
本文介绍了PowerDesigner - 通过 VBScript 将 TriggerTemplate 分配给触发器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 PowerDesigner v12 中,如何通过使用 VBScript 将 TriggerTemplate 分配给缺少定义的触发器?

In PowerDesigner v12, how would one, through use of VBScript, assign a TriggerTemplate to triggers that are missing the definition?

我们现在有一个脚本可以遍历触发器并显示触发器模板(如果有的话),但是所有将模板分配给这些触发器的尝试都失败了.

We have a script now that can loop through the triggers and display the triggertemplate (if it has one), but all attempts to assign a template to these triggers have failed.

任何见解将不胜感激!

有权力的人可以编辑这个并添加powerdesigner"作为标签吗?我做不到.

Can someone with power edit this and add 'powerdesigner' as a tag? I can't do it.

谢谢,卡尔文

推荐答案

我可能已经找到了答案,但我想获得其他输入.

I may have found an answer, but I want to get other input on it.

虽然我无法获得作为 DBMS 一部分的 TriggerTemplates 的引用,但模型本身可以拥有自己的 TriggerTemplates.可以根据需要引用这些基于模型的模板并将其分配给触发器.

While I cannot get a reference to the TriggerTemplates that are part of the DBMS, the model itself can have its own TriggerTemplates. These model based templates can be referenced and assigned to the triggers as needed.

我的想法是在模型中实际创建 DBMS 模板的副本,然后使用它们.

My thoughts were to actually create copies of the DBMS templates inside the model, and use those instead.

想法?

这篇关于PowerDesigner - 通过 VBScript 将 TriggerTemplate 分配给触发器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆