Book a Demo

Author Topic: Scripting and running SQL via the Cloud service  (Read 6479 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Scripting and running SQL via the Cloud service
« on: May 30, 2017, 08:01:43 pm »
Hi,

I have a custom VB Script in EA that exports selected data in an Excel file within several tabs (e.g. classes, attributes, connectors...)
It uses SQL queries that work fine via the ODBC link to the DB. When using the Cloud Service, the script fails exporting some of the data.

I have yet to investigate into details what's going on, but I was wondering if anyone had experienced a similar issue. Does the Cloud Service introduce issues in such scenario?

Thanks
Guillaume
Guillaume

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


PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: Scripting and running SQL via the Cloud service
« Reply #1 on: May 30, 2017, 10:34:47 pm »
This is something I want to look on, as well (up to now I just did not find time).

However I am absolutely sure that Cloud Service introduces some issues.
Without Cloud your users need access to the SQL server, but with cloud the users do not need that rights (what is in some cases a good thing).

Maybe I am wrong, but my feeling tells me that the hopping from EA SQL Select ->Cloud http->SQL server SQL Select->SQL server Sql Response->Cloud Http->EA SQL Response might be neither implemented in EA nor in the Cloud Server.
Best regards,

Peter Heintz

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Scripting and running SQL via the Cloud service
« Reply #2 on: May 31, 2017, 02:10:33 pm »
Some users have reported some issues with regards to the quick search in the EA Navigator on a cloud server.
Still have to investigate and possibly report a bug. But apparently using the cloud service is not as transparent to the API as it should.

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Scripting and running SQL via the Cloud service
« Reply #3 on: June 01, 2017, 05:01:44 pm »
I found the issue ! I'm testing the DBType value in the connection string so when I detect a Postgres DB, I'm running a Postgres specific SQL function.
When I use the Cloud Service, the returned connection string is ea--- ;Connect=Cloud=protocol:http,address:A.B.C.D,port:804;Data Source=EA;DSN=EA;

Hence I have no way of finding out the DBMS running behind the Cloud Service...

My workaround for the current project is to set DBType = 4 for all Cloud accesses as my client only uses Postgres behind the Cloud. However for addin solutions, I can't see a solution unless sparx can amend the Cloud Service to return the DBType in the connectionstring.

Guillaume

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


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile