Book a Demo

Author Topic: Generation SS 2000 Missing Foreign Keys  (Read 3596 times)

Jeff Odell

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Generation SS 2000 Missing Foreign Keys
« on: September 07, 2004, 11:38:24 am »
I'm generating a 15 or so table database from EA.  I have all the Foreign Keys specified using the Foreign Key dialog.  I'm doing a package-wide generation into a single file.  I have the Create Foreign Keys checkbox checked.  I also have Create Drop DDL checked.

Once the file is generated, I have all my DROP CONSTRAINT statements for the Foreign Keys at the top of the file as expected.  However, at the end of the file are only 5 of my CREATE CONSTRAINT statements for the Foriegn Key constraints.  There are several missing.

It almost seems like the generation quits prematurely or something.

Any ideas?  Thanks - Jeff Odell

Returning to my model I cannot see any difference between the ones that are showing up and the ones that are not.

Jeff Odell

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Generation SS 2000 Missing Foreign Keys
« Reply #1 on: September 08, 2004, 01:25:15 pm »
For anyone else suffering with this problem, build 4.1.734 does NOT exhibit this problem on the exact same model.  4.1.736 does have the problem.  This will provide you with a workaround until the problem is resolved.

Jeff Odell

jfortuny

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Generation SS 2000 Missing Foreign Keys
« Reply #2 on: September 30, 2004, 06:46:34 am »
I have the same problem, In one package I have  several diagrams to show different aspects of the application.

I have noticed that when I have one of the diagrams open at the moment of the generation of the SQL file it includes the Foreign Key references of that diagram. But not from the rest of the diagrams. On the same manner if no diagram is open, no Foreign Keys are created.
« Last Edit: September 30, 2004, 06:47:06 am by jfortuny »

Ignacio

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Generation SS 2000 Missing Foreign Keys
« Reply #3 on: September 30, 2004, 10:03:51 am »
Hi,

I had updated from 730 to 737 because, it was nothig to do about creating Foreign Keys when I tried to generate the DDL for an Oracle table.

I still no having the posibility to do it.

Does anyone know how to solve it?

Thanks in advance.
Ignacio Soler


Quote
I have the same problem, In one package I have  several diagrams to show different aspects of the application.

I have noticed that when I have one of the diagrams open at the moment of the generation of the SQL file it includes the Foreign Key references of that diagram. But not from the rest of the diagrams. On the same manner if no diagram is open, no Foreign Keys are created.


Jeff Odell

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Generation SS 2000 Missing Foreign Keys
« Reply #4 on: September 30, 2004, 02:55:16 pm »
The problem in SQL Server 2000 cleared itself up with build 737.  There was no mention in the release notes, but the developer that had followed up on my bug report told me it was fixed.

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: Generation SS 2000 Missing Foreign Keys
« Reply #5 on: September 30, 2004, 03:24:45 pm »
Yes - this bug was fixed for build 737 (missed the release notes  ???).

The problem was that when generating package level DDL, EA was only generating foreign keys for open diagrams. It now generates FKs for all tables in that package.