Author Topic: SQL query :: Returns author for each connector  (Read 4195 times)

atallec

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
SQL query :: Returns author for each connector
« on: May 16, 2013, 07:18:19 pm »
Hi,

I am looking for an SQL query that returns two colums:
1] the author name, 2] the connector name

The t_object table has an author column whereas the t_connector doesn't.

Any idea ? Thanks !

Alexandre Tallec

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SQL query :: Returns author for each connector
« Reply #1 on: May 16, 2013, 07:36:19 pm »
You can't since EA doesn't store the author for connectors.
(Auditing might, I'm not sure)

You could of course return the author for the source of the connector, counting on the fact that it is probable that the other of the source object also is the one that created the connector. :-/

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: SQL query :: Returns author for each connector
« Reply #2 on: May 16, 2013, 08:24:37 pm »
The author is (likely) stored in one of the bincontent columns of t_snapshot - but in zipped format. For a SQL not really available.

q.

Rodrigo Nunes

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: SQL query :: Returns author for each connector
« Reply #3 on: May 17, 2013, 12:37:39 am »
see if it helps with this query. :)

select top  10 t_object.Author, t_object.Object_ID, t_connector.Name from t_object
inner join t_connector
on t_object.Object_ID = t_connector.End_Object_ID

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: SQL query :: Returns author for each connector
« Reply #4 on: May 17, 2013, 06:31:04 am »
That's like Geert suggested the creator of one of the connected elements, but not of the connector itself.

q.