LLBLGen Pro 5.1.2
SQL Server 2019
I have a rather strange issue. We have generated the code on one database for years. Now we are moving towards another sourcedatabase. Both instanses are SQL Server 2019, and the schema is the same in both environment (as far as we can tell). When generating code with the new SQL Server as source, the Max-Lenght of some of the fields particularly in views changes. Even when the lenght of the column in the table the view is querying has not changed. I find this very strange.
An example:
Table: OppgaveAktivitet
Column |
Lenght |
ArbeidsflytID |
nvarchar(100) |
OppgaveID |
nvarchar(100) |
...
View: K2OppgaveListe
alter view dbo.K2OppgaveList
as
select a.ArbeidsflytID, a.OppgaveID from dbo.OppgaveAktivitet
In our current environment the generated code for this view is created with 100 as the Max-Length of the field, but in our new sql server this columns is now changed to 50 for some reason. This was just a few of the fields that this is happening with. Multiple view-fields has this strange behaviour that they are not following the lenght of the column in the table the view is selecting from.