Book a Demo

Author Topic: Generate DDL  (Read 3554 times)

katrin

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Generate DDL
« on: May 14, 2008, 05:44:47 pm »
Is it possible to run "Generate DDL" function for a db table with Automation Interface? I would like to generate sql for a table automatically and I can't find any function in the sparx documentation for doing this.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Generate DDL
« Reply #1 on: May 14, 2008, 10:04:58 pm »
From memory...

Select the table involved, and while it is selected (you should see the visible indicator on the diagram) go through the usual DDL generation process. This should now generate the DDL for the selected table rather than the entire package.

David
No, you can't have it!

katrin

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Generate DDL
« Reply #2 on: May 15, 2008, 05:36:23 pm »
sorry, probably I wasn't precise. What I meant was to use an API function for doing this. I know how to generate ddl for a table 'manually' - by selecting a table and then a function from the menu. However, I would like to write an Addin to sparx that will do it automatically. Is there any function for doing this? There is "GenerateClass" but I can't find any "generateDDL", "GenerateSQL", etc.
I think that my problem is similar to the one stated here: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1210790829
« Last Edit: May 15, 2008, 05:37:41 pm by katrin »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Generate DDL
« Reply #3 on: May 15, 2008, 08:04:33 pm »
I've answered another post today on this subject: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1210790829.

Please make the feature request as well. We've got to get this to 'bubble up' to the top of the stack.

David
No, you can't have it!