Book a Demo

Author Topic: Missing FK in SQL Server DDL Import  (Read 3880 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Missing FK in SQL Server DDL Import
« on: November 30, 2019, 12:53:30 am »
Hi,
I ran a DB import from a local SQL Server DB and noticed that FK associations between tables are missing.
Creating a DB schema in SQL Server Management Studio, I can see all associations with 3 that are missing in EA. Is this a known issue?

In my ODBC DSN, I'm using the following ODBC driver: SQL Server native client 11.0 (SQL Server is v13.0). I also ran a test with the SQL Server 10.00 driver.

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Missing FK in SQL Server DDL Import
« Reply #1 on: November 30, 2019, 12:58:23 am »
2 obvious questions,
1) are you sure there are foreign key constraints in the database?
2) have you selected the option of reverse engineering foreign key constraints?

If the answer to both questions is yes, what version of SQL Server are you dealing with?

EA does reverse engineer FK constraints, but haven’t tried this with V15.

Edit - Could you post the DDL of a missing FK constraint?
« Last Edit: November 30, 2019, 01:00:16 am by Modesto Vega »

David Ingleton

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Missing FK in SQL Server DDL Import
« Reply #2 on: November 30, 2019, 02:00:38 am »
I am running EA v15 and have reverse engineered SQL Server databases. The foreign key constraints imported OK in my case.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Missing FK in SQL Server DDL Import
« Reply #3 on: November 30, 2019, 03:05:58 am »
I also did a bunch of SQL Server reverse engineering, and in all cases I got my FK's.

Do you mean you are only missing 3 and a bunch of others imported just fine? Or are you missing all FK's.

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Missing FK in SQL Server DDL Import
« Reply #4 on: December 02, 2019, 06:48:49 pm »
Thank you for your replies. It appears that the DBA found some mistakes in the delivered schema so I'm waiting for a new file to test. Hopefully it will sort the few missing FK that I found, and confirming that it's not related with EA :)
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com