Book a Demo

Author Topic: EA Usage stats  (Read 16487 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA Usage stats
« Reply #15 on: March 27, 2020, 03:37:06 pm »
You can get

- Last user logged => no
- Last item modified => (if it's an element or a diagram)
- Last item modified date => (for an element or a diagram)
- Package numbers in the repo => yes
- Security enabled yes / no => yes
- Audit enabled yes / no => yes
- Versioning enabled yes / no => yes

Geert

Typia

  • EA User
  • **
  • Posts: 88
  • Karma: +1/-0
    • View Profile
Re: EA Usage stats
« Reply #16 on: March 30, 2020, 06:00:50 am »
You can get

- Last user logged => no
- Last item modified => (if it's an element or a diagram)
- Last item modified date => (for an element or a diagram)
- Package numbers in the repo => yes
- Security enabled yes / no => yes
- Audit enabled yes / no => yes
- Versioning enabled yes / no => yes

Geert

Hi Geert thanks for your answer,
If you have queries for those purpose I'm in !

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: EA Usage stats
« Reply #17 on: April 02, 2020, 08:57:39 pm »
This 2 queries should give you the last modified elements and diagrams in the repository and the number of packages, including root nodes, in the repository (from t_package instead of t_element).

Code: [Select]
SELECT Object_ID AS ID, 'Element.' & Object_Type AS Type, Name, ModifiedDate
FROM t_object
WHERE ModifiedDate = (SELECT MAX(ModifiedDate) FROM t_object)
UNION ALL
SELECT Diagram_ID, 'Diagram.' & Diagram_Type, Name, ModifiedDate FROM t_diagram
WHERE ModifiedDate = (SELECT MAX(ModifiedDate) FROM t_diagram)


Code: [Select]
SELECT count(*) FROM t_package

Typia

  • EA User
  • **
  • Posts: 88
  • Karma: +1/-0
    • View Profile
Re: EA Usage stats
« Reply #18 on: April 08, 2020, 12:07:04 am »
This 2 queries should give you the last modified elements and diagrams in the repository and the number of packages, including root nodes, in the repository (from t_package instead of t_element).

Code: [Select]
SELECT Object_ID AS ID, 'Element.' & Object_Type AS Type, Name, ModifiedDate
FROM t_object
WHERE ModifiedDate = (SELECT MAX(ModifiedDate) FROM t_object)
UNION ALL
SELECT Diagram_ID, 'Diagram.' & Diagram_Type, Name, ModifiedDate FROM t_diagram
WHERE ModifiedDate = (SELECT MAX(ModifiedDate) FROM t_diagram)


Code: [Select]
SELECT count(*) FROM t_package

Hi Modesto,
thanks a lot for your answer.
When I run the first query, I have an error message : " The data types varchar and nvarchar are incompatible in the '&' operator. "
I run it from sql management studio directly connected to database.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: EA Usage stats
« Reply #21 on: April 14, 2020, 06:45:06 am »
Google is always (well, in certain conditions) your friend. Strange error message? Just google and see if it hits StackOverflow :-)

q.