| summary | Explore SQL Server 2019 compatibility upgrade options for OutSystems 11 (O11) to ensure optimal database performance and compliance. |
|---|---|
| locale | en-us |
| guid | 394c269a-4655-41ff-8543-957c705d97fd |
| app_type | traditional web apps, mobile apps, reactive web apps |
| platform-version | o11 |
| figma |
OutSystems Platform Server 11.12.0 supports Microsoft SQL Server 2019 (15.x). Customers with self-managed installations may choose to upgrade to this database engine, either to remain up-to-date or because of company compliance requirements.
By following the upgrade process described in this article, you can also safeguard correct application behavior for databases created with lower SQL Server compatibility levels.
This article discusses two possible paths for your operations/infrastructure team and your database administrators to upgrade the database to a higher compatibility level:
- Upgrade in place
- Fresh install
Follow the procedure below to perform an upgrade in place.
- Stop OutSystems Services and IIS to prevent database changes during the SQL Server engine upgrade (Please see additional considerations).
- Create a backup of the platform, log, and session databases. Verify that this backup can be restored if needed.
- Upgrade the SQL Server engine version.
- Change the compatibility level of the platform, log, and session databases.
- Rebuild all indexes of the platform, log, and session databases.
- Start OutSystems Services and IIS (Please see additional considerations).
Follow the procedure below to perform a fresh install.
- Install a new SQL Server engine that supports the desired compatibility level.
- Stop OutSystems Services and IIS to prevent database changes during SQL Server engine installation (Please see additional considerations).
- Ensure that all platform, logs, and session databases are read-only.
- Create a full backup of the platform, log, and session databases. Verify that this backup can be restored if needed.
- Ensure that all platform, logs, and session databases are offline.
- Restore platform, log, and session databases in the new SQL Server engine.
- Ensure that all platform, logs, and session databases are read-write in the new server.
- Transfer user logins from the old database server to the new database server.
- Change the compatibility level of each of the platform and log databases.
- Rebuild all indexes.
- Run the OutSystems Configuration Tool to point the platform, logs, and session database at the new database engine.
- Start IIS.
- Apply settings to the whole factory.
- If needed, manually reconfigure external connections that may point at the old database.
Because of changes introduced in the cardinality estimator in SQL Server 2014, upgrading the compatibility level of previous database versions may have a negative impact on the speed of some queries in the platform/apps database.
In this case, you can rewrite affected application code to improve query performance. Where this is not feasible, you may need to turn on the Legacy Cardinality Estimator.
When starting or stopping OutSystems Services, please follow this specific order, as each service is dependent on the previous one:
- OutSystems Log Service
- OutSystems Deployment Controller Service
- OutSystems Deployment Service
- OutSystems Scheduler Service
- OutSystems SMS Connector Service