Book a Demo

Author Topic: SQL to count diagram objects on all diagrams in all sub-packages...  (Read 19143 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
L
« Reply #15 on: February 14, 2018, 04:02:46 am »
I just tried with SQLQuery and it worked.

a) SQL Basics. INT IS NOT STRING
b) SQL Basics for M$Access. If you use a different SQL it might be ok without the GROUP.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SQL to count diagram objects on all diagrams in all sub-packages...
« Reply #16 on: February 20, 2018, 11:12:40 pm »
try giving your result a name

e.g.
Select Count(*) as totalCount from ...

The error you are seeing is a problem related to XML, not a problem with the SQL

(but you should still leave out the single quotes when dealing with integers even though this syntax error seems to be ignored by the database you are using)

Geert