Book a Demo

Author Topic: SQL error when saving sequence diagram  (Read 4397 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
SQL error when saving sequence diagram
« on: November 30, 2009, 08:06:48 pm »
When saving a sequence diagram that contains some messages to operations with a long name and/or a lot of parameters I get an SQL server error: "Bynary data or string would be truncated"

this is apparently caused by the fact that EA stores the whole signature of the operation in the t_connector.Name field which is only 255 characters long.
Obviously this is not enough.

Reported to Sparx.

Geert

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 error when saving sequence diagram
« Reply #1 on: June 01, 2010, 05:41:28 pm »
Still not fixed in 8.0.856 >:(

I've sent a reminder email to Sparx.

Geert

Krayol

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: SQL error when saving sequence diagram
« Reply #2 on: June 01, 2010, 09:22:20 pm »
I know that Sparx try to keep databases unchanged so they are perhaps reluctant! :)

I've not come across this, but it sounds as if the object layer and data access mappings/ORM are okay, but that Sparx have simply not created the database with a large enough field.

If so, then as a temporary workaround users could probably just increase the field size themselves.  Since SQL Server 2000 the limit is 4000 unicode characters (and 2008+ are effectively unlimited; nvarchar(max)).  It probably needs a table recreate though.

Of course a better fix might be for the Sparx team to pass in a shorter name!


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 error when saving sequence diagram
« Reply #3 on: June 01, 2010, 10:03:46 pm »
Well, I'm very reluctant to change the database schema.
I'm sure that would get me in all kinds of trouble with upgrades, model transfers and gods knows what else.
So I rather live with the bug for now then change the database to something non-standard.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: SQL error when saving sequence diagram
« Reply #4 on: June 02, 2010, 11:08:39 am »
Quote
Well, I'm very reluctant to change the database schema.
I'm sure that would get me in all kinds of trouble with upgrades, model transfers and gods knows what else.
So I rather live with the bug for now then change the database to something non-standard.

Geert
Well, I HAVEN'T been reluctant to change the DB Structure (since it's self-inconsistent anyway - as is the code that uses it...  see: Inconsistencies in Repository technologies - especially the post on t_diagramlinks.IsHidden ) and yes, there are occasional problems.  But that not withstanding - I, too, would caution against making Name any larger than 255 characters.  NOT all the DB technologies allow generating indexes on columns larger than 255 characters.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!