OFFICIUM INSERVIO
Your reliable partner for your business software...
Sage 100 - 9.0 - Database - Datentyp "Text" / data type "text"
9.0.1 - Build 2233 - 16.11.2020
38805
Umstellung SQL-Datentyp "Text" auf "Varchar(Max)" / Change of SQL data type "Text" to "Varchar(Max)"
Deutsch
Microsoft kündigt schon seit einiger Zeit an, dass der SQL-Datentyp "Text" in einer zukünftigen Version des SQL-Servers entfernt werden soll und stattdessen "Varchar(Max)" genutzt werden soll.
Daher wurde die Sage 100 Standardelemente nun auf den neuen Datentyp umgestellt.
Dies bedeutet, dass neu angelegte Datenbanken den SQL-Datentyp "Varchar(Max)" nutzen. Bestehende Mandanten-Datenbanken und die globale Datenbank werden beim Update auf Version 9.0.1 automatisch auf den neuen SQL-Datentyp umgestellt.
Da auch die globale Datenbank umgestellt wird, kann einer globale Datenbank, die mit Version 9.0.1 oder neuer genutzt wird, nicht mehr gleichzeitig von älteren Versionen genutzt werden.
Diese Doppelnutzung war bisher erlaubt und wurde insb. in Testumgebungen genutzt.
Erforderliche Aktionen:
Für Version 9.0.1 müssen die Mandanten-Datenbanken und die globale Datenbank aktualisiert werden.
Partner-/Kunden-Applikationen sollten ebenfalls den neuen Datentyp benutzen.
Hierfür sind in den Datenbanken Tabellenfelder, gespeicherte Prozeduren und Trigger umzustellen.
Die Umstellung muss nicht sofort erfolgen.
Aktuell unterstützt sowohl der Microsoft SQL-Server als auch der Code der Sage 100 weiterhin auch den SQL-Datentyp "Text".
Eine Umstellung ist aber einzuplanen (die Umstellung der Tabellenfeld kann problemlos über den TSQL-Befehl "ALTER COLUMN" erfolgen).
Beispiel T-SQL-Script siehe hier:
https://www.officium-inservio.com/ms-sql/autoconvtext
English
Microsoft has announced for some time that the SQL data type "Text" will be removed in a future version of SQL Server, and "Varchar(Max)" will be used instead.
Therefore, the Sage 100 standard elements in the database have now been converted to the new data type.
This means that newly created databases use the SQL data type "Varchar(Max)".
Existing client databases and the global database are automatically converted to the new SQL data type when updating to version 9.0.1.
Since the global database is also being converted, a global database with version 9.0.1 or newer can no longer be used simultaneously by older versions.
This dual use was previously permitted and often used in test environments.
Required actions:
For version 9.0.1, the mandator databases and the global database must be updated.
Partner/customer applications should also use the new data type.
For this purpose, table fields, stored procedures and triggers must be converted in the databases.
The change does not have to be immediate.
Currently, both the Microsoft SQL Server and the code of the Sage 100 continue to support the SQL data type "Text".
However, a conversion must be planned (the conversion of the table field can be done easily using the TSQL command "ALTER COLUMN").
See this exampke T-SQL-Script:
https://www.officium-inservio.com/ms-sql/autoconvtext