Book a Demo

Author Topic: Two Data Modeling Questions  (Read 3597 times)

Ed Lucas

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Two Data Modeling Questions
« on: July 13, 2010, 11:22:09 pm »
1.  I've successfully reverse-engineered a few schemas from existing databases using the Project -> Database Engineering -> Import DB Schema from ODBC option.  My question is:  Is there a way to reverse engineer a data model into Sparx directly from DDL scripts without having to actually run the DDLs against a DB and then reverse from there?

2.  When I manually "Add Model" of type "Database", and I subsequently manually create a new table, for whatever reason, I am unable to specify a data type for a column.  The dropdown isn't disabled, but there's nothing I can choose.  Am I missing some kind of config step before I can specify data types?  (Like perhaps choosing a database variant or some such?)  If not, what am I doing wrong?

Many thanks,

-- Ed

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Two Data Modeling Questions
« Reply #1 on: July 13, 2010, 11:27:47 pm »
1. No, only from a live database
2. Yes you have to define a database type. You can set the default type at Settings/Database Datatypes, and set them individually for each class in the properties dialog.

Geert

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Two Data Modeling Questions
« Reply #2 on: July 15, 2010, 12:47:40 pm »
Quote
My question is:  Is there a way to reverse engineer a data model into Sparx directly from DDL scripts without having to actually run the DDLs against a DB and then reverse from there?
-- Ed

Now there is a feature I would appreciate
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Two Data Modeling Questions
« Reply #3 on: July 16, 2010, 10:49:27 pm »
ALTER FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
    SET SCHEMA new_schema



the prosecution rests.

b
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

Steven Tuften

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Two Data Modeling Questions
« Reply #4 on: August 10, 2010, 09:46:33 am »
All, Please post your request for this feature to Sparx !

It has caused me a huge amount of pain   :( as I've been unable for to reverse engineer directly from a DB2 z/OS db so have had to resort to importing the DDL extracted for me by the DBAs.

DDL went into erwin then exporting out as CSV then imported into EA using a custom automation script. Not an ideal process when most data modelling tools have the capability to import from DDL.

Ok, I've vented now. I feel better.  :)