Book a Demo

Author Topic: DB Import - No Columns for Views  (Read 7525 times)

NuWood Tech, Andrew

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
DB Import - No Columns for Views
« on: August 31, 2007, 05:19:47 am »
Hi

I am in need of importing a small schema of views (used for reports) into a stand alone project in EA. I wish to document the view structure and the relationships and then use the HTML documentation to give to the client.

I can import views ok but not the columns of the views. Is there a particluar reason for this and is there a way to make this happen?

I have tried tables and the columns come over but views they are blank.

I am running v7 build 815 and the db is ORACLE (if that makes any difference). ???
Andrew Wood

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: DB Import - No Columns for Views
« Reply #1 on: August 31, 2007, 05:31:37 am »
I don't think EA does it...
Recursion definition:
If you don’t understand the definition read "Recursion definition".

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: DB Import - No Columns for Views
« Reply #2 on: August 31, 2007, 05:37:46 am »
Surprisingly, if you enter "view column" (without the quotes) into the search function (at the top of this page), you may find the answers you are seeking...  ;)
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Martin Terreni

  • EA User
  • **
  • Posts: 672
  • Karma: +0/-0
  • Sorry, I can't write
    • View Profile
Re: DB Import - No Columns for Views
« Reply #3 on: August 31, 2007, 05:59:50 am »
Always good to have a "guru" around :)
Recursion definition:
If you don’t understand the definition read "Recursion definition".

NuWood Tech, Andrew

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: DB Import - No Columns for Views
« Reply #4 on: August 31, 2007, 06:02:53 am »
So basically it doesn't support it.

OK, well I will go to plan B and get them into EA another way. The HTML documentation is to good not to use.
Andrew Wood

Pawel Zubkiewicz

  • EA User
  • **
  • Posts: 78
  • Karma: +2/-1
    • View Profile
    • zubkiewicz.com
Re: DB Import - No Columns for Views
« Reply #5 on: October 19, 2016, 09:34:52 pm »
Same problem 9 years later....

Using EA12.1 I've imported subset of Views from Sybase DB. I didn't imported any tables though as they are not human readable ( great design and architecture ;-( 

In result of such import I don't have any columns on VIEW elements.

Is it normal behavior?
Is is possible to import in a way to have columns on views?
Enhanced Requirement Attributes Addin for Enterprise Architect (ERA Addin) - http://zubkiewicz.com/?p=239

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: DB Import - No Columns for Views
« Reply #6 on: October 19, 2016, 09:47:44 pm »
I think a view only imports the SQL query that defines the view, not the columns it returns.

Geert

Pawel Zubkiewicz

  • EA User
  • **
  • Posts: 78
  • Karma: +2/-1
    • View Profile
    • zubkiewicz.com
Re: DB Import - No Columns for Views
« Reply #7 on: October 20, 2016, 01:07:32 am »
That's correct. I've got the sql query in view element. Well, that would be all folks ;-(
Enhanced Requirement Attributes Addin for Enterprise Architect (ERA Addin) - http://zubkiewicz.com/?p=239

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: DB Import - No Columns for Views
« Reply #8 on: October 24, 2016, 07:37:16 pm »
I came across the same issue and submitted it as a feature request.
According to the latest Sparx update I got, it could not be planned for the near future.

Best option is probably to define a script that extracts columns from the SQL query associated with the view.
Guillaume

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