Author Topic: Issue: how reliable is SQL scratch pad?  (Read 1864 times)

BobM

  • EA User
  • **
  • Posts: 143
  • Karma: +9/-0
    • View Profile
Issue: how reliable is SQL scratch pad?
« on: January 05, 2023, 10:12:27 pm »
We had the issue where Sparx changed the behavior of the diagram property use alias when available where it displays blanks when nothing is filled in (Why the behavior up to Sparx 16.0 to not use alias when <blank> has been removed (if this is the issue) has not been shared to me)

Per instruction of sparx we fill in the alias of the actors we use our diagrams (which was an issue)
As I want to check the results I have seen sorcery at work:

First I perform a simple query to list all my archimate actors
Result:


After clicking an actor (ONE single element) suddenly about half of the types changes to BusinessActor (which does displays in the properties)


I search for Object_Type: BusinessActor and don't find anything


I search for Object_Type: Class and find all class elements, so I narrow it down to the correct stereotype


My question: How reliable is the scratchpad sql statement as the above result seem to give impossible values
Are there better (more reliable) methods to get simple select results in order to validate stuff (Preferably in Sparx so without having to log into a SQL management studio)
« Last Edit: January 05, 2023, 10:20:09 pm by BobM »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Issue: how reliable is SQL scratch pad?
« Reply #1 on: January 05, 2023, 11:19:13 pm »
The object type is the metatype and mangled through various procedures. It is NOT the stereotype. Only that it is connected to it. The profile defines which metatype a stereotype has.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13233
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Issue: how reliable is SQL scratch pad?
« Reply #2 on: January 06, 2023, 12:28:30 am »
EA does some "magic" with things like Object_Type and Note when you use the default column names like trying to show the metatype as set in the MDG based on the real object_type and stereotype.

If you give them an alias, EA will leave those fields alone.

So

Code: [Select]
Select o.object_type as RealObjectType from t_object o
Will give you the actual value found in the database.

Geert

BobM

  • EA User
  • **
  • Posts: 143
  • Karma: +9/-0
    • View Profile
Re: Issue: how reliable is SQL scratch pad?
« Reply #3 on: January 06, 2023, 12:47:41 am »
EA does some "magic" with things like Object_Type and Note when you use the default column names like trying to show the metatype as set in the MDG based on the real object_type and stereotype.

If you give them an alias, EA will leave those fields alone.

So

Code: [Select]
Select o.object_type as RealObjectType from t_object o
Will give you the actual value found in the database.

Geert
Thank you,

This is important information to know