Book a Demo

Author Topic: Database Script  (Read 2871 times)

jdavid

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Database Script
« on: April 12, 2006, 12:33:57 pm »
Two questions:
1: When creating the DDL scripts from the database entity, is there a way to create the DDL script for multiple tables at one time, so that tables get created in the correct order with the correct FK constraints.

2: Is the a way to define default values within the database model to attributes.

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: Database Script
« Reply #1 on: April 12, 2006, 03:14:41 pm »
Quote
1: When creating the DDL scripts from the database entity, is there a way to create the DDL script for multiple tables at one time, so that tables get created in the correct order with the correct FK constraints.

Foreign keys are added at the end of the script with alter table statements, so create table order is not relevant.

Quote
2: Is the a way to define default values within the database model to attributes.

Enter column default in the "Initial" attribute field.

jdavid

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Database Script
« Reply #2 on: April 13, 2006, 11:44:01 am »
Thanks for the reply...but it seems the EA will only create a script for one table at a time.....so if you want to select 10 tables and create the ddl script, how would you do this?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Database Script
« Reply #3 on: April 13, 2006, 12:11:18 pm »
Have you tried selecting the package in the Project View tree, and then using the Project / Database Engineering / Generate Package DDL menu?

This should give you a dialog with serveral options as well as a list of the tables in the package, defaulting (I believe) to all selected. You can then select or clear the tables you want.
No, you can't have it!