---
title: "The XM databases"
slug: "the-xm-databases"
abstract: ""
---
# The XM databases

The following table lists the databases that you must upgrade or deploy for the XM topology or for the XM part of the XP topology. The table also lists the scripts that you must run against the databases:

| Database | Sitecore XP version |  |  |
| --- | --- | --- | --- |
|  | 10.0.X | 10.1.X - 10.4.X |  |
| core | Script H* | Script H* |  |
| master | Script D | Script D |  |
| web | Script E | No action |  |
| experience forms | No action | No action |  |
| security* | Script H* | Script H* |  |

| Database | Sitecore XP version |  |  |
| --- | --- | --- | --- |
|  | 8.1.X – 8.2.X | 9.0.X – 9.2.X | 9.3.0 |
| core | Scripts A, C, H* | Scripts B, C, H* | Scripts C, H* |
| master | Scripts A, D | Scripts B, D | Script D |
| web | Scripts A, E | Scripts B, E | Script E |
| experience forms | New** | Scripts F, G | Script F |
| security* | *Not supported* | Script H* |  |

\* If you are not using the *security* database and the connection strings for the *core* and *security* databases are the same, you must apply script H to the *core* database.

If you have extracted the *security* database from the *core* database and the connection strings for *core* and *security* databases are different, you must apply script H only to the *security* database.

For more information about the *security* database, see Walkthrough: Moving security data to a separate database.

\*\* All the new databases are installed when you install the new instance of Sitecore XP.

The *ExperienceForms* connection string is required on *CD* and *CM* servers.

> [!important]
> The scripts listed in the table must be run against the databases in the order that they are listed in the table.

The scripts are:

- Script A – `CMS_core_master_web8x.sql`
- Script B – `CMS_core_master_web9x.sql`
- Script C – `CMS_core.sql`
- Script D – `CMS_master.sql`
- Script E – `CMS_web.sql`
- Script F – `SXP_experienceforms_storage.sql`
- Script G – `SXP_experienceforms_filestorage.sql`
- Script H – `CMS_security.sql`

## The Sessions database

If you are using an out-of-process session state provider, you must:

- *SQL Server:* Use the new clean *Sessions* database from the Sitecore XP installation.
- *Redis cache:* Use the Redis Cache service *Console* to clean the cache.
- *Mongo:* Switch to the SQL Server or Redis provider.