Book a Demo

Author Topic: Stored Procedure DDL Generation  (Read 4344 times)

Don Miller

  • Guest
Stored Procedure DDL Generation
« on: November 30, 2002, 12:13:26 pm »
 ???
Greetings All:

I've read (most) of the available information in the BB's here about modeling SQL Stored Procedures, how to represent result sets as classes with a <<table>> stereotype and so forth.

The bit I don't get yet is: can EA 3.50 (579) generate stored procedure script? When I create an operation on a <<table>> class and set the operation stereotype to <<proc>> I get the header in my DDL script, and the Notes are added too, but that's the only field that seems to make it into the script. I'm supposing that there's somewhere that I can actually type the procedure script so that it too is included in the output.

So I guess the question is, where does one enter stored procedure script (INSERT blah INTO blah blah) in EA so that it gets generated to the DDL output?


Thanks!
Don

ianrobinson

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Stored Procedure DDL Generation
« Reply #1 on: December 06, 2002, 09:13:28 am »
Does anyone know the answer to this, i also have been battling to make it work.


Peter_Cheung

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • Nam-myoho-renge -kyo
    • View Profile
Re: Stored Procedure DDL Generation
« Reply #2 on: December 18, 2002, 04:12:31 pm »
I don't think EA support coding within the model and have it include part of the code generation.  

If someone have a solution on this, I would like to know as well.

Thanks

CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
Re: Stored Procedure DDL Generation
« Reply #3 on: December 19, 2002, 04:59:33 am »
G'day folks,

Haven't tried either of these, but I'd think both should work...

You could use EA automation and a custom PL/SQL generator to access whatever objects contain PL/SQL and produce PL/SQL scripts.

Another option would be to query the EA project file with ODBC, querying for those objects that contain your PL/SQL, and using SQL to build your PL/SQL DDL statements.
Cheers and best regards.