How do you set the database schema, at the package level, in SPARX Enterprise Architect?

一个人想着一个人 提交于 2021-02-10 12:52:32

问题


Example:

I have a Data Model with a package called Academic. Inside of Academic, I have tables called Instructor and Student. When I "Generate DDL", I'd like Instructor and Student to be generated as:

CREATE TABLE [Academic].[Instructor] ...
CREATE TABLE [Academic].[Student] ...

I have tried setting the tagged value named OWNER (EAUML::table::OWNER) on each table (which works), however I'd like to think that I could somehow set this at the package level and have all of the tables within 'inherit' this value. To that end, I tried adding a new tagged value to the package, both as EAUML::table::OWNER and OWNER but it doesn't work as desired.

Ideally I'd like to use the package name as the schema name but it would be acceptable for the schema name to be an individual value, as long as it's only set in one place.


回答1:


Settings on the package aren't used when generating the schema, so that won't help.

But if you right-click the package in the package browser and select Code Engineering -- Reset DBMS Options, you can change the DBMS type and table owner for all tables in the package.



来源:https://stackoverflow.com/questions/19481324/how-do-you-set-the-database-schema-at-the-package-level-in-sparx-enterprise-ar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!