Book a Demo

Author Topic: How can ANSI DDL be imported directly into EA with  (Read 5699 times)

Justin Halls

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
How can ANSI DDL be imported directly into EA with
« on: March 30, 2005, 08:08:10 pm »
Issue:
I need to import DDL from Teradata.
We use ODBC, but EA does not support Teradata.
It produces a "Data is not a Numeric-literal" error.

Proposed Solution:
Other CASE tools allow the direct import of ANSI compliant DDL CREATE statements.
This is useful, even if they do not support other databases like Teradata.
I can write parsing scripts which can take Teradata DDL, and convert it into an EA preferred DDL (eg BD2), and then import it into EA.
Parsing scripts could then modify the Generated DDL output to produce Teradata compliant DDL.
Please note that the requirement is NOT to support Teradata.
However, at the moment, the import drawbridges appear to be up, as the only way to import is from a supported database via ODBC.
This facility would also expand EA's market, as it would make it possible to import from non-supported databases.  
The facility should be based on the ANSI standard.

Can anybody help?

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: How can ANSI DDL be imported directly into EA
« Reply #1 on: March 30, 2005, 10:37:39 pm »
?  You may have to muck around getting a version of tdodbc that matches both your teradata version and the version of MDAC used for EA. ?

? You may have to muck around creating a dbprofile in EA to cope with non ANSI teradata types?

? What exactly do you mean by "import DDL"  - EA uses ODBC to query the actual db structure not the DDL's ?

hth
Bruce
"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.

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: How can ANSI DDL be imported directly into EA
« Reply #2 on: March 31, 2005, 04:42:08 am »
Import DDL = read text file containing DDL statements.

Or not ?

Justin Halls

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: How can ANSI DDL be imported directly into EA
« Reply #3 on: March 31, 2005, 09:55:44 pm »
Yes, that is correct.
The need is to be able to read ANSI 92 compliant text like:

CREATE TABLE xyz.Cost_Item(
     Activity_SName VARCHAR(20) NOT NULL,
     Channel_Code CHAR(4) ,
     From_Date DATE ,
     To_Date DATE,
     Unit_Cost_Amt INTEGER);

and produce a model.

The work around I have just completed is to use a simple awk script to parse the Teradata DDL into a schema.ini file.
This can then be used as input via the ODBC Text driver.
Very ugly indeed as almost all semantic information is lost in the bare as bones ODBC text view.
However, it provides a starting point for creating a simple data model out of the 600 odd tables.
I have no intention to use such a model for DDL generation, but it works as far as data model diagramming goes.

Dan_Lundy

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How can ANSI DDL be imported directly into EA
« Reply #4 on: April 01, 2005, 11:08:44 am »
I have always felt a DDL importer would be great!

Often, I need to include and generate the database model for use in a project. The ODBC option requires that I (1) have access to the database, and (2) that the database already exists.


dserodio

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: How can ANSI DDL be imported directly into EA
« Reply #5 on: April 01, 2005, 02:57:09 pm »
I'd love a DDL import feature.  ;)
Correctness is clearly the prime quality. If a system does not do what it is supposed to do, then everything else about it matters little. - Bertrand Meyer

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: How can ANSI DDL be imported directly into EA
« Reply #6 on: April 02, 2005, 04:54:09 am »
I strongly support the development of a DDL importer.  Most other tools of EA's calibre have it and it is most useful.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Justin Halls

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: How can ANSI DDL be imported directly into EA
« Reply #7 on: April 05, 2005, 09:44:40 pm »
This should not be too technically difficult.
For example, mySQL would have DDL parsing code.
The mySQL source could be looked at to determine the best way to import DDL.

The tool's value will increase as it will be able to handle  standard ANSI DDL Create statements.
This should attact a whole new class of users who work on data centric rather than process centric systems.